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

include-path-searcher

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

include-path-searcher

Helper functions for searching for files in multiple include paths

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
70K
increased by30.33%
Maintainers
1
Weekly downloads
 
Created
Source

include-path-searcher

Build Status

Utility functions for searching multiple include paths.

Installation

npm install --save include-path-searcher

Usage

var includePathSearcher = require('include-path-searcher')

findFileSync

includePathSearcher.findFileSync(relativePath, includePaths) // => fullPath

Searches for the file identified by relativePath in any of the given directories (includePaths). Returns the full path of the first file found, or throws an error if none found. For example:

includePathSearcher.findFileSync('foo.txt', ['dir1', 'dir2'])

This returns either 'dir1/foo.txt' or 'dir2/foo.txt'. If foo.txt does not exist in either directory, it throws an error.

FAQs

Package last updated on 01 Mar 2014

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