1.0.2 • Published 8 years ago

co-sha1 v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

co-sha1

Install

$ npm install co-sha1

Usage

const fs = require('fs')
const sha1 = require('co-sha1')

// Synchronous with strings and Buffers
console.log(sha1('hello world!'))
// → 430ce34d020724ed75a196dfc2ad67c77772d169

console.log(sha1(new Buffer('hello world!')))
// → 430ce34d020724ed75a196dfc2ad67c77772d169

// Asynchronous with Streams
console.log(yield sha1(fs.createReadStream('hello.txt')))
// → 430ce34d020724ed75a196dfc2ad67c77772d169
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago