strip-directives
v1.0.4
Published
Strip directives (like eslint-disable-line) before you publish
Maintainers
Readme
strip-directives
Strip directives (like eslint-disable-line) from your code to clean a package
before it is published.
Install
npm install strip-directivesUsage
CLI
strip-directives file-1.js file-2.jsAPI
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.
License
The source code is licensed under the Apache-2.0 license, see LICENSE for
the full license text.
