Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

About

// crypto.mjs import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const hasher = createHash('sha1'); hasher.setEncoding('hex'); // ensure you have a `package.json` file for this test! hasher.write(await readFile('package.json')); hasher.end(); const fileHash = hasher.read(); // run with `node crypto.mjs`

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

javascript

About

// crypto.mjs import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const hasher = createHash('sha1'); hasher.setEncoding('hex'); // ensure you have a `package.json` file for this test! hasher.write(await readFile('package.json')); hasher.end(); const fileHash = hasher.read(); // run with `node crypto.mjs`

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages