module-from-string

v3.3.1
Load module from string using require or import.
load module string require require-from-string import vm esbuild

clean

rm -rf .cache dist

dts

tsc -p tsconfig.dts.json

bundle

rollup -c

build

npm run clean && npm run dts && npm run bundle

lint

ts-standardx

lint:fix

ts-standardx --fix

jest:cjs

jest -c __tests__/cjs/jest.config.js

jest:esm

cross-env NODE_OPTIONS=--experimental-vm-modules jest -c __tests__/esm/jest.config.js

jest

npm run jest:cjs && npm run jest:esm

test

npm run lint && npm run build && npm run jest
npm i module-from-string

Metadata

  • MIT
  • >=12.20.0
  • exuanbo
  • released 7/29/2024

Downloads

Maintainers