hasha

Hashing made simple. Get the hash of a buffer/string/stream/file.

MIT License

Downloads
20.6M
Stars
944
Committers
10

Bot releases are visible (Hide)

hasha - Latest Release

Published by sindresorhus 11 months ago

Breaking

  • Require Node.js 18 6dda681
  • This package is now pure ESM. Please read this.
  • Converted the default import to named imports:
    • hashahashSync
    • hasha.asynchash
    • hasha.fromStreamhash
    • hasha.fromFilehashFile
    • hasha.fromFileSynchashFileSync
    • hasha.streamhashingStream

https://github.com/sindresorhus/hasha/compare/v5.2.2...v6.0.0

hasha -

Published by sindresorhus about 4 years ago

  • Fix .fromFile() Node.js 14 compatibility (#34) 80b71af

https://github.com/sindresorhus/hasha/compare/v5.2.1...v5.2.2

hasha -

Published by sindresorhus about 4 years ago

hasha -

Published by sindresorhus over 4 years ago

  • Avoid Webpack warning due to non-literal require (#26) 9774aaa

https://github.com/sindresorhus/hasha/compare/v5.1.0...v5.2.0

hasha -

Published by sindresorhus about 5 years ago

  • Move async file hashing to a worker thread when on Node.js 12 or later (#21) 7e6a0fd
  • Add .async() method (#21) 7e6a0fd

https://github.com/sindresorhus/hasha/compare/v5.0.0...v5.1.0

hasha -

Published by sindresorhus over 5 years ago

Breaking for TypeScript users only:

  • Refactor TypeScript definition to CommonJS compatible export (#19) c07d884
    • You need to change import hasha from 'hasha'; to import hasha = require('hasha');

https://github.com/sindresorhus/hasha/compare/v4.0.1...v5.0.0

hasha -

Published by sindresorhus over 5 years ago

  • Allow mixed input arrays in the TypeScript definition (#17) 999304f

https://github.com/sindresorhus/hasha/compare/v4.0.0...v4.0.1

hasha -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#15) 0bf7c48

Enhancements:

  • Add TypeScript definition (#15) 0bf7c48

https://github.com/sindresorhus/hasha/compare/v3.0.0...v4.0.0