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

hike

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

hike

Multihome files search library for mincer

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2K
increased by135.13%
Maintainers
1
Weekly downloads
 
Created
Source

hike

Build Status NPM version

Inspired by Hike (Ruby) - a library for finding files in a set of paths. It's only purpose is to simplify maintenance of mincer. No pull requests are accepted unless they are related to mincer needs.

See API docs for details on methods.

Examples

Find JavaScript files in this project:

trail = new Hike("/home/ixti/Projects/hike-js");
trail.appendExtensions([".js"]);
trail.appendPaths(["lib", "test"]);

trail.find("hike");
# => "/home/ixti/Projects/hike-js/lib/hike.js"

trail.find("test_hike");
# => "/home/ixti/Projects/hike-js/test/test_hike.rb"

Explore your shell path:

trail = new Hike("/");
trail.appendPaths(process.env.PATH.split(":"));

trail.find("ls");
# => "/bin/ls"

trail.find("gem");
# => "/home/ixti/.rvm/rubies/ruby-1.9.2-p290/bin/gem"

Installation

$ npm install hike

License

Copyright (c) 2014 Vitaly Puzrin, Aleksey V Zapparov

Released under the MIT license. See LICENSE for details.

FAQs

Package last updated on 29 Dec 2016

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