UNPKG

denoify

Version:

For NPM module authors that would like to support Deno but do not want to write and maintain a port.

6 lines (3 loc) 186 B
const PROCESS_IS_USED = /process\./; export const test = (sourceCode: string) => PROCESS_IS_USED.test(sourceCode); export const modification = [`import process from "node:process";`];