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