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')
-
-
Notifications
You must be signed in to change notification settings - Fork 0
License
ajiu9/op-pkg
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Sponsor this project
Packages 0
No packages published