cwd

Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (Node.js/javascript util)

cwd

Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (Node.js/javascript util)

Install with npm

$ npm i cwd --save
var cwd = require('cwd');
cwd();
cwd('one/two.js');
cwd('one', 'two.js');
cwd(['one', 'two.js']);

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

Install dev dependencies:

$ npm i -d && npm test

Jon Schlinkert

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on November 27, 2015.