JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4448
  • Score
    100M100P100Q119054F
  • License MIT

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

Package Exports

  • lookup-path

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lookup-path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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');

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.