Have ideas to improve npm?Join in the discussion! »

    sha1-cli

    0.1.1 • Public • Published

    sha1-cli Build Status

    CLI for comparing and calculating sha1sum for files

    Install

    $ npm install --save sha1-cli
    

    Usage

    const sha1Cli = require('sha1-cli');
     
    sha1Cli('unicorns.txt', {sha1: true}, (sum) => {
        console.log(sum)
        //=> 'c25db8c82904f163f1148c4a7e0b843601c49c9d'
    });

    API

    sha1Cli(input, [options])

    input

    Type: string

    Lorem ipsum.

    options

    sha1

    Type: boolean
    Default: false

    Returns sha1 sum of the file.

    sum

    Type: string
    Default: sha1.txt

    Compares sha1 sum of the file with this file.

    CLI

    $ npm install --global sha1-cli
    
    $ sha1-cli --help
    
        Usage
        sha1-cli [input]
    
      Options
        --sum  file to compare sha1 sum. [Default: sha1.txt]
        --sha1 display sha1 sum of given file.
    
      Examples
        $ sha1-cli ponies --sha1
        c25db8c82904f163f1148c4a7e0b843601c49c9d
        $ sha1-cli ponies --sum rainbow.sha1.txt
        Passed :)
    
    

    License

    MIT © Nikhil Srivastava

    Install

    npm i sha1-cli

    DownloadsWeekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • avatar