GT2/GT2-Android/node_modules/temp/package.json

108 lines
10 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "temp@0.8.3",
"scope": null,
"escapedName": "temp",
"name": "temp",
"rawSpec": "0.8.3",
"spec": "0.8.3",
"type": "version"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/metro"
]
],
"_from": "temp@0.8.3",
"_id": "temp@0.8.3",
"_inCache": true,
"_location": "/temp",
"_nodeVersion": "0.12.0",
"_npmUser": {
"name": "bruce",
"email": "brwcodes@gmail.com"
},
"_npmVersion": "2.5.1",
"_phantomChildren": {},
"_requested": {
"raw": "temp@0.8.3",
"scope": null,
"escapedName": "temp",
"name": "temp",
"rawSpec": "0.8.3",
"spec": "0.8.3",
"type": "version"
},
"_requiredBy": [
"/metro"
],
"_resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz",
"_shasum": "e0c6bc4d26b903124410e4fed81103014dfc1f59",
"_shrinkwrap": null,
"_spec": "temp@0.8.3",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/metro",
"author": {
"name": "Bruce Williams",
"email": "brwcodes@gmail.com"
},
"bugs": {
"url": "https://github.com/bruce/node-temp/issues"
},
"dependencies": {
"os-tmpdir": "^1.0.0",
"rimraf": "~2.2.6"
},
"description": "Temporary files and directories",
"devDependencies": {},
"directories": {
"lib": "lib"
},
"dist": {
"shasum": "e0c6bc4d26b903124410e4fed81103014dfc1f59",
"tarball": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz"
},
"engines": [
"node >=0.8.0"
],
"gitHead": "76966b174840a540c8d1566507f2afcad99a3afa",
"homepage": "https://github.com/bruce/node-temp#readme",
"keywords": [
"temporary",
"tmp",
"temp",
"tempdir",
"tempfile",
"tmpdir",
"tmpfile"
],
"license": "MIT",
"main": "./lib/temp",
"maintainers": [
{
"name": "bruce",
"email": "bruce@codefluency.com"
}
],
"name": "temp",
"optionalDependencies": {},
"readme": "node-temp\n=========\n\nTemporary files, directories, and streams for Node.js.\n\nHandles generating a unique file/directory name under the appropriate\nsystem temporary directory, changing the file to an appropriate mode,\nand supports automatic removal (if asked)\n\n`temp` has a similar API to the `fs` module.\n\nNode.js Compatibility\n---------------------\n\nSupports v0.10.0+.\n\n[![Build Status](https://travis-ci.org/bruce/node-temp.png)](https://travis-ci.org/bruce/node-temp)\n\nPlease let me know if you have problems running it on a later version of Node.js or\nhave platform-specific problems.\n\nInstallation\n------------\n\nInstall it using [npm](http://github.com/isaacs/npm):\n\n $ npm install temp\n\nOr get it directly from:\nhttp://github.com/bruce/node-temp\n\nSynopsis\n--------\n\nYou can create temporary files with `open` and `openSync`, temporary\ndirectories with `mkdir` and `mkdirSync`, or you can get a unique name\nin the system temporary directory with `path`.\n\nWorking copies of the following examples can be found under the\n`examples` directory.\n\n### Temporary Files\n\nTo create a temporary file use `open` or `openSync`, passing\nthem an optional prefix, suffix, or both (see below for details on\naffixes). The object passed to the callback (or returned) has\n`path` and `fd` keys:\n\n```javascript\n{ path: \"/path/to/file\",\n, fd: theFileDescriptor\n}\n```\n\nIn this example we write to a temporary file and call out to `grep` and\n`wc -l` to determine the number of time `foo` occurs in the text. The\ntemporary file is chmod'd `0600` and cleaned up automatically when the\nprocess at exit (because `temp.track()` is called):\n\n```javascript\nvar temp = require('temp'),\n fs = require('fs'),\n util = require('util'),\n exec = require('child_process').exec;\n\n// Automatically track and cleanup files at exit\ntemp.track();\n\n// Fake data\nvar myData = \"foo\\nbar\\nfoo\\nbaz\";\n\n// Process the data (note: error handling omitted)\ntemp.open('myprefix', function(err, info) {\n if (!err) {\n fs.write(info.fd, myData);\n fs.close(info.fd, function(err) {\n exec(\"grep foo '\" + info.path + \"' | wc -l\", function(err, stdout) {\n util.puts(stdout.trim());\n });\n });\n }\n});\n```\n\n### Want Cleanup? Make sure you ask for it.\n\nAs noted in the example above, if you want temp to track the files and\ndirectories it creates and handle removing those files and directories\non exit, you must call `track()`. The `track()` function is chainable,\nand it's recommended that you call it when requiring the module.\n\n```javascript\nvar temp = require(\"temp\").track();\n```\n\nWhy is this necessary? In pre-0.6 versions of temp, tracking was\nautomatic. While this works great for scripts and\n[Grunt tasks](http://gruntjs.com/), it's not so great for long-running\nserver processes. Since that's arguably what Node.js is _for_, you\nhave to opt-in to tracking.\n\nBut it's easy.\n\n#### Cleanup anytime\n\nWhen tracking, you can run `cleanup()` and `cleanupSync()` anytime\n(`cleanupSync()` will be run for you on process exit). An object will\nbe returned (or passed to the callback) with cleanup counts and\nthe file/directory tracking lists will be reset.\n\n```javascript\n> temp.cleanupSync();\n{ files: 1,\n dirs: 0 }\n```\n\n```javascript\n> temp.cleanup(function(err, stats) {\n console.log(stats);\n });\n{ files: 1,\n dirs: 0 }\n```\n\nNote: If you're not tracking, an error (\"not tracking\") will be passed\nto the callback.\n\n### Temporary Directories\n\nTo create a temporary directory, use `mkdir` or `mkdirSync`, passing\nit an optional prefix, suffix, or both (see below for details on affixes).\n\nIn this example we create a temporary directory, write to a file\nwithin it, call out to an external program to create a PDF, and read\nthe result. While the external process creates a lot of additional\nfiles, the temporary directory is removed automatically at exit (because\n`temp.track()` is called):\n\n```javascript\nvar temp = require('temp'),\n
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/bruce/node-temp.git"
},
"scripts": {
"test": "node test/temp-test.js"
},
"tags": [
"temporary",
"temp",
"tempfile",
"tempdir",
"tmpfile",
"tmpdir",
"security"
],
"version": "0.8.3"
}