0.0.5 • Published 3 years ago

@asmfx/search-fs v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@asmfx/search-fs package

This package contains basic operations for handling search in file system.

Installation

Users can easily install dthis package by npm package manager by running the following command:

npm install @asmfx/search-fs

find

find function provides search interface to recursively traversing and find files/directories starting from startingPath directory.

import { find } from "@asmfx/search-fs"

... 
const result = await find(startingPath, { pattern: /SOME_REGEX_PATTERN_FOR_SEARCH/g });
...

grep

grep function provides search interface to recursively traversing in the filesystem and searching for content inside the provided files.

import { grep } from "@asmfx/search-fs"

... 
const result = await grep(paths, { pattern: /SOME_REGEX_PATTERN_FOR_SEARCH/g });
...
0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago