neauxp

0.1.2 • Public • Published

Neauxp

Neauxp

Table of Contents

About

Neauxp protects you... from yourself. Use globs and regular expressions to stop bad code at commit time.

Neauxp exposes a CLI tool, as well as an importable module. Use the CLI with Husky to easily add an additional layer of protection around your codebase, or import the module and build your own workflow.

Installation

To install Neauxp in a given project, run the following command:

npm install neauxp

Setup

Neauxp is configured via package.json. To get started, add a neauxp field with a patterns key.

...
"neauxp": {
    "patterns": {
        "*foo*": [
            "Good",
            "Bad",
            "Double Plus Ungood"
        ]
    }
}
...

Given the example above, Neauxp will check any files or file paths which contain the string 'foo' for the terms 'Good', 'Bad', and 'Double Plus Ungood'. If any of these terms are found in any of the matched files, Neauxp will throw an error.

Usage

Neauxp is designed to be run at commit time, meaning that it plays well with tools like Husky.

To get started, follow the Husky installation instructions here, then update your project's package.json file to include the following script:

...
"scripts": {
    "precommit": "neauxp"
}
...

Documentation

Currently, Neauxp does not include any external documentation.

For an overview of the project's evolution, please consult the CHANGELOG.

Attribution

/neauxp/

    Package Sidebar

    Install

    npm i neauxp

    Weekly Downloads

    1

    Version

    0.1.2

    License

    ISC

    Unpacked Size

    1.05 MB

    Total Files

    18

    Last publish

    Collaborators

    • jrmykolyn