publint
Lint before you publish! Catch packaging errors and ensure compatibility across environments.
This package contains a CLI and API to lint packages locally. The package to be linted must exist and be built locally for the lint to succeed. To test other npm packages, try https://publint.bjornlu.com.
Usage
CLI
$ publint --help
Usage
$ publint [dir] [options]
Options
-v, --version Displays current version
-h, --help Displays this message
API
import { publint } from 'publint'
const messages = await publint({
pkgDir: './path/to/package'
vfs: createCustomVfsObj()
})
console.log(messages)
License
MIT