New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

filesniffer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filesniffer

Search files the easy way.

1.0.3
latest
Source
npm
Version published
Weekly downloads
5K
-8.89%
Maintainers
1
Weekly downloads
 
Created
Source

FileSniffer

Build Status Coverage Status

Find files by matching contents

Installation

npm install --save filesniffer

Usage

// Searches for `someString` in `/tmp/test.txt`, returning all matches as an array 
const matches = await FileSniffer.create()
  .path('/tmp/test.txt')
  .depth(1)
  .collect(asArray())
  .find('someString');

  console.log(matches); // array of matching lines

Documentation

For more examples and API details, see API documentation

Test

npm test

Test Coverage

To generate a test coverage report:

npm run coverage

Contributing

See contributing guidelines

Keywords

file

FAQs

Package last updated on 05 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts