New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-hash

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-hash

create hashes for browserify

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
11M
-16.87%
Maintainers
5
Weekly downloads
 
Created
Source

create-hash

Build Status

Node style hashes for use in the browser, with native hash functions in node.

API is the same as hashes in node:

var createHash = require('create-hash')
var hash = createHash('sha224')
hash.update('synchronous write') // optional encoding parameter
hash.digest() // synchronously get result with optional encoding parameter

hash.write('write to it as a stream')
hash.end() // remember it's a stream
hash.read() // only if you ended it as a stream though

To get the JavaScript version even in node do require('create-hash/browser')

Keywords

crypto

FAQs

Package last updated on 11 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts