@node-cli/search
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Node CLI search package

npm

Search is a command line tool that can:

  • find files or folders that match a certain pattern
  • look for string within those files and display them (think shell commands "find" and "grep")

Installation

This command line utility can be installed globally or locally within your project. It does make more sense to have it installed globally though, since it then can be use anywhere by simply starting it to search files and folders located in the current folder.

> npm install --global @node-cli/search

Examples

Find all files with the extension ".jsx" in the "src" folder

> search --type f --pattern ".jsx$" src/

Change the permissions to executable for all the files with the extension ".sh" found under the "bin" folder

> search --type f --pattern ".sh$" --command "chmod +x" bin/

Search in all the markdown files under the "src" folder for the keywords "Table of Content"

> search --type f --pattern ".md$" --grep "Table of Content"

Get help

> search --help

License

MIT © Arno Versini

/@node-cli/search/

    Package Sidebar

    Install

    npm i @node-cli/search

    Weekly Downloads

    1

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    56.6 kB

    Total Files

    19

    Last publish

    Collaborators

    • aversini