{"name":"base-cwd","description":"Base plugin that adds a getter/setter for the current working directory.","version":"0.3.2","homepage":"https://github.com/node-base/base-cwd","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-cwd.git"},"bugs":{"url":"https://github.com/node-base/base-cwd/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"empty-dir":"^0.2.0","find-pkg":"^0.1.2","is-valid-app":"^0.2.0"},"devDependencies":{"base":"^0.11.0","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["api","app","application","base","baseplugin","building-blocks","create","cwd","framework","plugin","plugins","tool","toolkit","tools"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-option","base-pipeline","base-plugins","base-task"]},"reflinks":["verb","verb-readme-generator"]},"gitHead":"df1e208ae8fee36838a5ccb046941945c086bd32","_id":"base-cwd@0.3.2","_shasum":"bef761765bb18c9912621c9664be4c168a782aab","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bef761765bb18c9912621c9664be4c168a782aab","tarball":"http://registry-npm.ywwl.com/base-cwd/download/base-cwd-0.3.2.tgz","integrity":"sha512-fa8FBQl6LQ50nXY9xiyriXMY6pv/aaXn/cUD+obw0u+5O9iJ2BYPj2vPNF0YBeMwVSXjXzkTrrYkJ1dl14gVAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDm+lNYw/nkNG8Jyk5TdE1ldIW2Lb4NkdHeAmW54roWwIgETnS0xQx0IXgOpvcOqaNcCpo8z5UZ/kueOv4OXhSIeo="}],"size":1939,"noattachment":false,"key":"/base-cwd/-/base-cwd-0.3.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-cwd-0.3.2.tgz_1468197184654_0.5264946471434087"},"directories":{},"readme":"# base-cwd [![NPM version](https://img.shields.io/npm/v/base-cwd.svg?style=flat)](https://www.npmjs.com/package/base-cwd) [![NPM downloads](https://img.shields.io/npm/dm/base-cwd.svg?style=flat)](https://npmjs.org/package/base-cwd) [![Build Status](https://img.shields.io/travis/node-base/base-cwd.svg?style=flat)](https://travis-ci.org/node-base/base-cwd)\n\nBase plugin that adds a getter/setter for the current working directory.\n\n## Table of Contents\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save base-cwd\n```\n\n## Usage\n\n```js\nvar cwd = require('base-cwd');\nvar Base = require('base');\nvar app = new Base();\napp.use(cwd());\n```\n\nAdds a `cwd` getter/setter to `app`:\n\n```js\nconsole.log(app.cwd);\n//=> /Users/jonschlinkert/dev/base/base-cwd\nconsole.log(app.cwd === process.cwd());\n//=> true\n```\n\nIf `app.options.cwd` is defined it will used by `app.cwd`:\n\n```js\napp.options.cwd = 'foo/bar';\nconsole.log(app.cwd);\n//=> /Users/jonschlinkert/dev/base/base-cwd/foo/bar\nconsole.log(app.cwd === process.cwd());\n//=> false\n```\n\nIf `app.cwd` is set, it will also set the value to `app.cache.cwd`, to ensure that the user-defined value is used on the next _get_.\n\n## About\n\n### Related projects\n\n* [base-option](https://www.npmjs.com/package/base-option): Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme… [more](https://github.com/node-base/base-option) | [homepage](https://github.com/node-base/base-option \"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.\")\n* [base-pipeline](https://www.npmjs.com/package/base-pipeline): base-methods plugin that adds pipeline and plugin methods for dynamically composing streaming plugin pipelines. | [homepage](https://github.com/node-base/base-pipeline \"base-methods plugin that adds pipeline and plugin methods for dynamically composing streaming plugin pipelines.\")\n* [base-plugins](https://www.npmjs.com/package/base-plugins): Upgrade's plugin support in base applications to allow plugins to be called any time after… [more](https://github.com/node-base/base-plugins) | [homepage](https://github.com/node-base/base-plugins \"Upgrade's plugin support in base applications to allow plugins to be called any time after init.\")\n* [base-task](https://www.npmjs.com/package/base-task): base plugin that provides a very thin wrapper around [https://github.com/doowb/composer](https://github.com/doowb/composer) for adding task methods to… [more](https://github.com/node-base/base-task) | [homepage](https://github.com/node-base/base-task \"base plugin that provides a very thin wrapper around <https://github.com/doowb/composer> for adding task methods to your application.\")\n* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://github.com/node-base/base) | [homepage](https://github.com/node-base/base \"base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common methods, like `set`, `get`, `del` and `use`.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme][] (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/node-base/base-cwd/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 13, 2016._","publish_time":1468197186108,"_cnpm_publish_time":1468197186108,"dist-tags":{"latest":"0.3.4"}}