Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fs-search-worker

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-search-worker

JS worker implementation of file system search

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fs-search-worker

JS worker implementation of file system search The module provides an async/await interface to a glob search perform in a worker. One worker process is spawn per function call.

Usage

import  {SearchFn} from 'fs-search-worker';
let results = await SearchFn(filePattern, '/path/to/1', , ..., '/path/to/1');

results is a list preserving the order of supplied locations, where each entry contains the match of the corresponding location.

Small testing script

node build/test-search.js index.js /path/to/fs-search-worker /path/to/fs-search-worker/build
Looking for ndex.js in /path/to/fs-search-worker /Users/guillaumelaunay/work/DVL/Js/fs-search-worker/build
test completed [
  [
    '/path/to/fs-search-worker/build/index.js',
    '/path/to/fs-search-worker/node_modules/balanced-match/index.js',
    '/path/to/fs-search-worker/node_modules/brace-expansion/index.js',
    '/path/to/fs-search-worker/node_modules/concat-map/index.js',
    '/path/to/fs-search-worker/node_modules/fs.realpath/index.js',
    '/path/to/fs-search-worker/node_modules/path-is-absolute/index.js'
  ],
  [
    '/path/to/fs-search-worker/build/index.js'
  ]
]

FAQs

Package last updated on 02 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc