lookup-path
Attempt to resolve the absolute filepath to a file and verify that it exists.
Last updated 10 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install lookup-path 
SYNC missed versions from official npm registry.

lookup-path NPM version Build Status

Attempt to resolve the absolute filepath to a file and verify that it exists.

You might also be interested in is-absolute.

Install

Install with npm:

$ npm i lookup-path --save

Usage

var lookup = require('lookup-path');
console.log(lookup('package.json'));
//=> '~/package.json'

// pass a cwd as a second parameter
lookup('foo.js', 'test');

Related projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2016 Jon Schlinkert Released under the MIT license.


This file was generated by verb, v0.9.0, on February 07, 2016.

Current Tags

  • 0.3.1                                ...           latest (9 years ago)

5 Versions

  • 0.3.1                                ...           9 years ago
  • 0.3.0                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE