UNPKG

bricks-cli

Version:

Command line tool for developing ambitious ember.js apps

29 lines (28 loc) 1.8 kB
{ "name": "quick-temp", "description": "Create and remove temporary directories with minimal effort", "version": "0.1.2", "author": { "name": "Jo Liss", "email": "joliss42@gmail.com" }, "main": "index.js", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/joliss/node-quick-temp" }, "dependencies": { "rimraf": "~2.2.6", "mktemp": "~0.3.4", "underscore.string": "~2.3.3" }, "readme": "# node-quick-temp\n\nCreate and remove temporary directories. Useful for build tools, like Broccoli\nplugins. Smart about naming, and placing them in `./tmp` if possible, so you\ndon't have to worry about this.\n\n## Installation\n\n```bash\nnpm install --save quick-temp\n```\n\n## Usage\n\n```js\nvar quickTemp = require('quick-temp')\n```\n\n### Creating a temporary directory\n\nTo make a temporary and assign its path to `this.tmpDestDir`, call either one\nof these:\n\n```js\nquickTemp.makeOrRemake(this, 'tmpDestDir')\n// or\nquickTemp.makeOrReuse(this, 'tmpDestDir')\n```\n\nIf `this.tmpDestDir` already contains a path, `makeOrRemake` will remove it\nfirst and then create a new directory, whereas `makeOrReuse` will be a no-op.\n\nBoth functions also return the path of the temporary directory.\n\n### Removing a temporary directory\n\nTo remove a previously-created temporary directory and all its contents, call\n\n```js\nquickTemp.remove(this, 'tmpDestDir')\n```\n\nThis will also assign `this.tmpDestDir = null`. If `this.tmpDestDir` is\nalready null or undefined, it will be a no-op.\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/joliss/node-quick-temp/issues" }, "homepage": "https://github.com/joliss/node-quick-temp", "_id": "quick-temp@0.1.2", "_from": "quick-temp@^0.1.2" }