lookup-path

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

MIT 5 个版本
安装
npm install lookup-path
yarn add lookup-path
pnpm add lookup-path
bun add lookup-path
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.

版本列表
0.3.1 2016-02-07
0.3.0 2014-08-03
0.2.0 2014-07-23
0.1.1 2014-07-19
0.1.0 2014-07-19