1.0.7 • Published 10 months ago

@node-cli/search v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months 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.7

10 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago