108 lines
4.3 KiB
JSON
108 lines
4.3 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "write-file-atomic@^1.2.0",
|
|
"scope": null,
|
|
"escapedName": "write-file-atomic",
|
|
"name": "write-file-atomic",
|
|
"rawSpec": "^1.2.0",
|
|
"spec": ">=1.2.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/metro"
|
|
]
|
|
],
|
|
"_from": "write-file-atomic@>=1.2.0 <2.0.0",
|
|
"_id": "write-file-atomic@1.3.4",
|
|
"_inCache": true,
|
|
"_location": "/write-file-atomic",
|
|
"_nodeVersion": "7.7.4",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/write-file-atomic-1.3.4.tgz_1493249998004_0.7851631820667535"
|
|
},
|
|
"_npmUser": {
|
|
"name": "iarna",
|
|
"email": "me@re-becca.org"
|
|
},
|
|
"_npmVersion": "4.6.1",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "write-file-atomic@^1.2.0",
|
|
"scope": null,
|
|
"escapedName": "write-file-atomic",
|
|
"name": "write-file-atomic",
|
|
"rawSpec": "^1.2.0",
|
|
"spec": ">=1.2.0 <2.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/metro"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz",
|
|
"_shasum": "f807a4f0b1d9e913ae7a48112e6cc3af1991b45f",
|
|
"_shrinkwrap": null,
|
|
"_spec": "write-file-atomic@^1.2.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/metro",
|
|
"author": {
|
|
"name": "Rebecca Turner",
|
|
"email": "me@re-becca.org",
|
|
"url": "http://re-becca.org"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/iarna/write-file-atomic/issues"
|
|
},
|
|
"dependencies": {
|
|
"graceful-fs": "^4.1.11",
|
|
"imurmurhash": "^0.1.4",
|
|
"slide": "^1.1.5"
|
|
},
|
|
"description": "Write files in an atomic fashion w/configurable ownership",
|
|
"devDependencies": {
|
|
"mkdirp": "^0.5.1",
|
|
"require-inject": "^1.4.0",
|
|
"rimraf": "^2.5.4",
|
|
"standard": "^9.0.2",
|
|
"tap": "^10.3.2"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "f807a4f0b1d9e913ae7a48112e6cc3af1991b45f",
|
|
"tarball": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "8f7d56f6a62600a38e816a8276a128883f4e7436",
|
|
"homepage": "https://github.com/iarna/write-file-atomic",
|
|
"keywords": [
|
|
"writeFile",
|
|
"atomic"
|
|
],
|
|
"license": "ISC",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "iarna",
|
|
"email": "me@re-becca.org"
|
|
},
|
|
{
|
|
"name": "othiym23",
|
|
"email": "ogd@aoaioxxysz.net"
|
|
}
|
|
],
|
|
"name": "write-file-atomic",
|
|
"optionalDependencies": {},
|
|
"readme": "write-file-atomic\n-----------------\n\nThis is an extension for node's `fs.writeFile` that makes its operation\natomic and allows you set ownership (uid/gid of the file).\n\n### var writeFileAtomic = require('write-file-atomic')<br>writeFileAtomic(filename, data, [options], callback)\n\n* filename **String**\n* data **String** | **Buffer**\n* options **Object**\n * chown **Object**\n * uid **Number**\n * gid **Number**\n * encoding **String** | **Null** default = 'utf8'\n * mode **Number** default = 438 (aka 0666 in Octal)\ncallback **Function**\n\nAtomically and asynchronously writes data to a file, replacing the file if it already\nexists. data can be a string or a buffer.\n\nThe file is initially named `filename + \".\" + murmurhex(__filename, process.pid, ++invocations)`.\nIf writeFile completes successfully then, if passed the **chown** option it will change\nthe ownership of the file. Finally it renames the file back to the filename you specified. If\nit encounters errors at any of these steps it will attempt to unlink the temporary file and then\npass the error back to the caller.\n\nIf provided, the **chown** option requires both **uid** and **gid** properties or else\nyou'll get an error.\n\nThe **encoding** option is ignored if **data** is a buffer. It defaults to 'utf8'.\n\nExample:\n\n```javascript\nwriteFileAtomic('message.txt', 'Hello Node', {chown:{uid:100,gid:50}}, function (err) {\n if (err) throw err;\n console.log('It\\'s saved!');\n});\n```\n\n### var writeFileAtomicSync = require('write-file-atomic').sync<br>writeFileAtomicSync(filename, data, [options])\n\nThe synchronous version of **writeFileAtomic**.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+ssh://git@github.com/iarna/write-file-atomic.git"
|
|
},
|
|
"scripts": {
|
|
"test": "standard && tap --coverage test/*.js"
|
|
},
|
|
"version": "1.3.4"
|
|
}
|