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.
5 lines
143 B
TypeScript
5 lines
143 B
TypeScript
import crypto from "crypto";
|
|
|
|
export const hash = (string: string) =>
|
|
crypto.createHash("sha256").update(string).digest("hex").slice(0, 10);
|