1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs

11 lines
290 B
JavaScript
Raw Normal View History

import { createRequire } from "node:module";
// Import this so that deno_graph knows to download this file.
if (false) import("npm:@denotest/lossy-utf8-script@1.0.0");
const require = createRequire(import.meta.url);
const mod = require("@denotest/lossy-utf8-script");
console.log(mod);