node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

cwd

cwd NPM version

Resolve the current working directory relative to the calling module.

Quickstart

var cwd = require('cwd');

Usage

var pkg = require(path.join(cwd, 'package.json'));

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license