✏️ 编辑:README.md
路径:
/home/boguraj1/public_html/jobsite/node_modules/create-hash/README.md
大小:688 B · 修改:2022-11-21 20:08:12 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
# create-hash [](https://travis-ci.org/crypto-browserify/createHash) Node style hashes for use in the browser, with native hash functions in node. API is the same as hashes in node: ```js 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')`
💾 保存
取消
保存为 UTF-8,换行统一为 LF