NodeJS Crypto (API)

JS
S
JavaScript

Give files a hash in the name

1import crypto from 'crypto';
2
3const fileHash = crypto.createHash('md5').update(fileContents).digest('hex');
4

Created on 1/12/2018