0.2.0 • Published 9 months ago

pkg-exports v0.2.0

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

pkg-exports

NPM version

Get exports of an local npm package.

Install

npm i pkg-exports

Usage

getExportsRuntime

Get the exports by evaluate the module in worker thread.

import { getExportsRuntime } from 'pkg-exports'

const exports = await getExportsRuntime('vue')
console.log(exports) // ['ref', 'computed', ...]

getExportsStatic

Get the exports by static analysis (only work with ESM). Experimental.

import { getExportsStatic } from 'pkg-exports'

const exports = await getExportsStatic('vue')
console.log(exports) // ['ref', 'computed', ...]

Sponsors

License

MIT License © 2022 Anthony Fu

0.2.0

9 months ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago