{
  "_args": [
    [
      {
        "raw": "mktemp@~0.4.0",
        "scope": null,
        "escapedName": "mktemp",
        "name": "mktemp",
        "rawSpec": "~0.4.0",
        "spec": ">=0.4.0 <0.5.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/quick-temp"
    ]
  ],
  "_from": "mktemp@>=0.4.0 <0.5.0",
  "_id": "mktemp@0.4.0",
  "_inCache": true,
  "_location": "/mktemp",
  "_nodeVersion": "1.2.0",
  "_npmUser": {
    "name": "sasaplus1",
    "email": "sasaplus1@gmail.com"
  },
  "_npmVersion": "2.5.1",
  "_phantomChildren": {},
  "_requested": {
    "raw": "mktemp@~0.4.0",
    "scope": null,
    "escapedName": "mktemp",
    "name": "mktemp",
    "rawSpec": "~0.4.0",
    "spec": ">=0.4.0 <0.5.0",
    "type": "range"
  },
  "_requiredBy": [
    "/quick-temp"
  ],
  "_resolved": "https://registry.npmjs.org/mktemp/-/mktemp-0.4.0.tgz",
  "_shasum": "6d0515611c8a8c84e484aa2000129b98e981ff0b",
  "_shrinkwrap": null,
  "_spec": "mktemp@~0.4.0",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/quick-temp",
  "author": {
    "name": "sasa+1",
    "email": "sasaplus1@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/sasaplus1/mktemp/issues"
  },
  "contributors": [
    {
      "name": "Michael Ficarra",
      "email": "github.public.email@michael.ficarra.me"
    }
  ],
  "dependencies": {},
  "description": "mktemp command for node.js",
  "devDependencies": {
    "intelli-espower-loader": "^0.6.0",
    "mocha": "^2.1.0",
    "power-assert": "^0.10.1",
    "sinon": "^1.12.2"
  },
  "directories": {
    "test": "test/"
  },
  "dist": {
    "shasum": "6d0515611c8a8c84e484aa2000129b98e981ff0b",
    "tarball": "https://registry.npmjs.org/mktemp/-/mktemp-0.4.0.tgz"
  },
  "engines": {
    "node": ">0.9"
  },
  "gitHead": "27afcceaf5bd3436d6237f62e1a707103791104d",
  "homepage": "https://github.com/sasaplus1/mktemp#readme",
  "license": "MIT",
  "main": "./index.js",
  "maintainers": [
    {
      "name": "sasaplus1",
      "email": "sasaplus1@gmail.com"
    }
  ],
  "name": "mktemp",
  "optionalDependencies": {},
  "readme": "# mktemp\n\n[![Build Status](https://travis-ci.org/sasaplus1/mktemp.svg)](https://travis-ci.org/sasaplus1/mktemp)\n[![Dependency Status](https://gemnasium.com/sasaplus1/mktemp.svg)](https://gemnasium.com/sasaplus1/mktemp)\n[![NPM version](https://badge.fury.io/js/mktemp.svg)](http://badge.fury.io/js/mktemp)\n\nmktemp command for node.js\n\n## Installation\n\n```sh\n$ npm install mktemp\n```\n\n## Usage\n\n```js\nvar mktemp = require('mktemp');\n\nmktemp.createFile('XXXXX.txt', function(err, path) {\n  if (err) throw err;\n\n  // path match a /^[\\da-zA-Z]{5}\\.txt$/\n  console.log(path);\n});\n\n// return value match a /^[\\da-zA-Z]{5}\\.tmp$/\nmktemp.createFileSync('XXXXX.tmp');\n\nmktemp.createDir('XXXXXXX', function(err, path) {\n  if (err) throw err;\n\n  // path match a /^[\\da-zA-Z]{7}$/\n  console.log(path);\n});\n\n// return value match a /^XXX-[\\da-zA-Z]{3}$/\nmktemp.createDirSync('XXX-XXX');\n```\n\nif support Promise, can use Promise style.\n\n```js\nvar mktemp = require('mktemp');\n\nmktemp\n  .createFile('XXXXX.txt')\n  .then(function(path) {\n    // path match a /^[\\da-zA-Z]{5}\\.txt$/\n    console.log(path);\n  })\n  .catch(function(err) {\n    console.error(err);\n  });\n\nmktemp\n  .createDir('XXXXX')\n  .then(function(path) {\n    // path match a /^[\\da-zA-Z]{5}$/\n    console.log(path);\n  })\n  .catch(function(err) {\n    console.error(err);\n  });\n```\n\nmktemp functions are replace to random string from placeholder \"X\" in template. see example:\n\n```js\nmktemp.createFileSync('XXXXXXX');  // match a /^[\\da-zA-Z]{7}$/\nmktemp.createFileSync('XXX.tmp');  // match a /^[\\da-zA-Z]{3}\\.tmp$/\nmktemp.createFileSync('XXX-XXX');  // match a /^XXX-[\\da-zA-Z]{3}$/\n```\n\n## Functions\n\n### createFile(template[, callback])\n\n* `template`\n  * `String` - filename template\n* `callback`\n  * `function(err, path)` - callback function\n    * `err` : `Error|Null` - error object\n    * `path` :  `String` -  path\n\ncreate blank file of unique filename. permission is `0600`.\n\nit throws TypeError if node.js unsupported Promise and callback is not a function.\n\n### createFileSync(template)\n\n* `template`\n  * `String` - filename template\n* `return`\n  * `String` - path\n\nsync version createFile.\n\n### createDir(template[, callback])\n\n* `template`\n  * `String` - dirname template\n* `callback`\n  * `function(err, path)` - callback function\n    * `err` : `Error|Null` - error object\n    * `path` : `String` - path\n\ncreate directory of unique dirname. permission is `0700`.\n\nit throws TypeError if node.js unsupported Promise and callback is not a function.\n\n### createDirSync(template)\n\n* `template`\n  * `String` - dirname template\n* `return`\n  * `String` - path\n\nsync version createDir.\n\n## Test\n\n```sh\n$ npm install\n$ npm test\n```\n\n## Contributors\n\n* [Michael Ficarra](https://github.com/michaelficarra)\n\n## License\n\nThe MIT license. Please see LICENSE file.\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git://github.com/sasaplus1/mktemp.git"
  },
  "scripts": {
    "fix": "fixjsstyle --flagfile .closurelinter -r .",
    "lint": "gjslint --flagfile .closurelinter -r .",
    "test": "mocha"
  },
  "version": "0.4.0"
}
