1.0.6 • Published 18 days ago

@node-cli/search v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
18 days ago

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

1.0.6

18 days ago

1.0.5

2 months ago

1.0.4

3 months ago

1.0.3

4 months ago

1.0.2

10 months ago

1.0.1

12 months ago

1.0.0

12 months ago