JSPM

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

Easily set the CWD (current working directory) to the same directory as package.json in Node.js projects.

Package Exports

  • cwd

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 (cwd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cwd NPM version

Easily set the CWD (current working directory) to the same directory as package.json in Node.js projects.

Install

Install with npm:

npm i cwd --save-dev

Usage

var cwd = require('cwd');
var foo = cwd();
var bar = cwd('one/two.js');
var baz = cwd('one', 'two.js');

Author

Jon Schlinkert

License

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


This file was generated by verb-cli on April 21, 2014.