mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
194 B
TypeScript
10 lines
194 B
TypeScript
import createHash = require('create-hash');
|
|
|
|
const hash = createHash('sha224');
|
|
|
|
hash.update('synchronous write');
|
|
hash.digest();
|
|
hash.write('write to it as a stream');
|
|
hash.end();
|
|
hash.read();
|