metaforecast/src/backend/utils/hash.ts
Vyacheslav Matyukhin 066eb0302a
style: bring back double quotes from prettier
One large commit to avoid dealing with messy patches later on.
Turns out I had
https://marketplace.visualstudio.com/items?itemName=amatiasq.sort-imports
installed with single quotes which messed up all double quotes from
prettier.
2022-03-28 20:59:07 +03:00

5 lines
143 B
TypeScript

import crypto from "crypto";
export const hash = (string: string) =>
crypto.createHash("sha256").update(string).digest("hex").slice(0, 10);