No Proscribed Meaning

    jsgrep-cli

    1.0.0 • Public • Published

    jsgrep-cli

    Build Status Known Vulnerabilities

    An alternative to grep which uses JavaScript's Regex, supports a match and a match-and-replace

    Installation

    npm i jsgrep-cli -g
    

    Example

    Match input from stdin, return any matching line:

    ls -al ~ | jsgrep " \.[a-z]+rc$"
    

    Match and replace lines from stdin. Capturing groups are exposed as $1, $2... variables (1-indexed), and must probably be escaped to prevent being interpreted by your shell:

    ls -al ~ | jsgrep ".+ (\.[a-z]+rc$)" "\$1"
    

    Passing flags (default i):

    ls -al ~ | jsgrep " \.[a-z]+rc$" --flags iu
    

    Install

    npm i jsgrep-cli

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    7.49 kB

    Total Files

    10

    Last publish

    Collaborators

    • branneman