maplint
v0.8.0
Published
A tiny linter for validating source maps.
Maintainers
Readme
maplint 🛠️
A tiny linter for validating source maps.
This package checks your source maps for common mistakes and ensures that they are valid according to the source map v3 spec.
Usage
Validate every source map in a directory:
npx maplint ./distOr a single source map file:
npx maplint ./dist/index.js.mapYou can also validate the source maps published in an npm package:
npx maplint --npm some-package
npx maplint --npm some-package@3Options
| Option | Description |
| -------------- | --------------------------------------------------------------------------------------------------------- |
| --npm | Treat the path as an npm package spec (e.g. foo or foo@3) and validate the source maps in its tarball |
| --quiet | Only report errors, skipping any warnings |
| -h, --help | Display usage information |
License
MIT
