0.0.1-alpha.0 • Published 4 years ago

quick-find-in-files v0.0.1-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Quick find in files

quick-find-in-files recursively searches all files in selected directory and sub-directories for text matches. The library is built completely in c++ and exposes its functionality using node-addon-api.

Example

import { quickFindInFiles } from 'quick-find-in-files'

const directory = process.cwd()
const needle = 'needle'

const result = quickFindInFiles(directory, needle)

console.log(result)
// [
//   {
//     filePath: '<path>',
//     queryHits: [
//       {
//         line: 'It would appear there is a <needle> on this particular line',
//         lineNumber: 1,
//         link: '<path>:1:28',
//         offset: 28,
//       },
//     ],
//     totalHits: 1,
//   },
// ]

Documentation

Learn more about quick-find-in-files on the official website.

Contributing

If you'd like to contribute, start by searching through the issues and pull requests to see whether someone else has raised a similar idea or question.

If you don't see your idea listed, and you think it fits into the goals of this guide, do one of the following:

  • If your contribution is minor, such as a typo fix, open a pull request.
  • If your contribution is major, such as a new feature, start by opening an issue first. That way, other people can weigh in on the discussion before you do any work.

License

MIT

0.0.1-alpha.1

4 years ago

0.0.1-alpha.0

4 years ago