Browse Source

utf8

master
Guillermo Rauch 9 years ago
parent
commit
4ffae480a4
  1. 2
      lib/hash.js

2
lib/hash.js

@ -10,7 +10,7 @@ import { readFile } from 'fs-promise';
export default async function hashes (files) {
const entries = await Promise.all(files.map(async (name) => {
const data = await readFile(name);
const data = await readFile(name, 'utf8');
return [hash(data), { name, data }];
}));
return new Map(entries);

Loading…
Cancel
Save