npm.io
1.0.0 • Published 1 year ago

npx-import-light

Licence
ISC
Version
1.0.0
Deps
0
Size
61 kB
Vulns
0
Weekly
0

npx-import-light

Import modules and load them if needed deferred from npm

import { npxImport } from 'npx-import-light'

// If cowsay isn't installed locally, npxImport will try
// to download, install & load it, completely seamlessly.
const dependency = await npxImport('cowsay')

Based on npx-import.