strip-directives
v2.2.0
Published
Strip directives (like eslint-disable-line) before you publish
Downloads
2,652
Maintainers
Readme
strip-directives
Strip directives (like eslint-disable-line) from your code to clean a package
before it is published.
Install
npm install --global strip-directivesUsage
CLI
strip-directives file-1.js file-2.jsFor more information
strip-directives --helpAPI
import { stripDirectives } from "strip-directives";
stripDirectives("var x = y == z; // eslint-disable-line eqeqeq");
//=> "var x = y == z;"Support
Directives from the following tooling is supported:
If a tool is missing from this list you can request support for it by opening an issue.
Related
License
The source code is licensed under the Apache-2.0 license, see LICENSE for
the full license text.
