0.0.3 • Published 7 months ago

op-pkg v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

op-pkg

Usage

import {
  importModule,
  isPackageExists,
  resolveModule
} from 'op-pkg'

isPackageExists('op-pkg') // true

// similar to `require.resolve` but works also in ESM
resolveModule('op-pkg')
// '/path/to/node_modules/op-pkg/dist/index.cjs'

// similar to `await import()` but works also in CJS
const { importModule } = await importModule('op-pkg')

License

MIT License © 2024-PRESENT Ajiu9

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago