crypto
Import:
import { createHash } from "node:crypto";
Example:
import { createHash } from "node:crypto";
export function main(): void {
const hash = createHash("sha256").update("hello").digest("hex");
console.log(hash);
}
This is a package import, not ambient behavior. Keep the model explicit:
@tsonic/jsgives you the JS world@tsonic/nodejsgives you Node-style modules likenode:crypto