UNPKG

pnpm

Version:

Fast, disk space efficient package manager

114 lines (113 loc) 4.71 kB
{ "_args": [ [ { "raw": "write-yaml-file@2.0.0", "scope": null, "escapedName": "write-yaml-file", "name": "write-yaml-file", "rawSpec": "2.0.0", "spec": "2.0.0", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/modules-yaml" ] ], "_from": "write-yaml-file@2.0.0", "_hasShrinkwrap": false, "_id": "write-yaml-file@2.0.0", "_location": "/write-yaml-file", "_nodeVersion": "10.12.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/write-yaml-file_2.0.0_1540755252808_0.28646471388026806" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "6.4.1", "_phantomChildren": {}, "_requested": { "raw": "write-yaml-file@2.0.0", "scope": null, "escapedName": "write-yaml-file", "name": "write-yaml-file", "rawSpec": "2.0.0", "spec": "2.0.0", "type": "version" }, "_requiredBy": [ "#DEV:/", "/@pnpm/modules-yaml" ], "_resolved": "https://registry.npmjs.org/write-yaml-file/-/write-yaml-file-2.0.0.tgz", "_shasum": "2ef0148e52397a1e19730d99f76641180c4d03af", "_shrinkwrap": null, "_spec": "write-yaml-file@2.0.0", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/modules-yaml", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io" }, "dependencies": { "graceful-fs": "^4.1.11", "js-yaml": "^3.8.1", "mkdirp": "^0.5.1", "pify": "^4.0.0", "write-file-atomic": "^2.0.0" }, "description": "Stringify and write YAML to a file atomically", "devDependencies": { "standard": "12.0.1" }, "directories": {}, "dist": { "integrity": "sha512-fzilkm8OzkTQUdV45L4eG+af0qbtrNNpJCFdn9xm5oMVA+0JJwf3xzQczR/pOD0WWRY0GerpUx4Og+t6P2o6Yw==", "shasum": "2ef0148e52397a1e19730d99f76641180c4d03af", "tarball": "https://registry.npmjs.org/write-yaml-file/-/write-yaml-file-2.0.0.tgz", "fileCount": 5, "unpackedSize": 3964, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb1g81CRA9TVsSAnZWagAAT08P/RqQ4ZReeVNzZtEL6kMw\nC0C4SYY3eqe9cAZ8f/0ZSD2QOlXJ3hpG2H+NBwZw/7ZY0OqYyvoCkNwJEWgO\nISW2eTQd+8n5Mmy+rGYaB3P+mgJrTgHSX1WWAJMoihs3lVJvJ+/UMAm1IqCA\nYpq9cc3UVaKEvOwKGzS5GHgrcETEGg9+8cri330F6LBhwg0ID1Tascrlfbd3\nhvq5T0cjgOOodjP215PGTH5XfhIhQwAdguS5f2lTHipehL6YESPDTqfI/nLq\nTLtX/DkOYgjYB/v0NdamUPG3Vq173sxLnc99H11JkiHL6CHhe4YDK0Kv1GWA\ndb9rpNrgPsdKTOZozEbBksXMvv4ZggutMNHd5gF2ktZxkkeTxwa5a1Af8nv8\n/NB+y5KHYrZfVOEtPc/NlJJhb2TGMCQ/lxwLmLa2TulRi9a48/hlSvT94cMT\ndnZZdeNMCaevb1BogWvk6Y/OxB2WwNjor23vBVQ2EFaKIi7i1NPmfABKKG/7\n88QHWtlweN9ySqlfJTDEQ4Rb0W+E8po0drZXk8SHmkiggrp3CL6g1Bt1cwwb\neqlA6ujnOY1RbP46GfkFOKtR5H9rDkJVoThWQ3ND6WyRu0aN/YkfyGoMoMP8\nAnOhdfyEkaHRmBF/XjK9ht8nJZhjDHIivD4VXWKNHKl/a0ymmoruA3I6NHNr\nYt5q\r\n=3ljW\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=6" }, "files": [ "index.js", "index.d.ts" ], "homepage": "https://github.com/zkochan/packages/tree/master/write-yaml-file#readme", "keywords": [ "write", "yaml", "stringify", "file", "fs", "graceful", "stable", "atomic", "atomically" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "zkochan", "email": "zoltan.kochan@gmail.com" } ], "name": "write-yaml-file", "optionalDependencies": {}, "readme": "# write-yaml-file\n\n> Stringify and write YAML to a file atomically\n\nCreates directories for you as needed.\n\n## Installation\n\n```\nnpm i -S write-yaml-file\n```\n\n## Usage\n\n```js\nconst writeYamlFile = require('write-yaml-file')\n\nwriteYamlFile('foo.yaml', {foo: true}).then(() => {\n console.log('done')\n})\n```\n\n## API\n\n### `writeYamlFile(filepath, data, [options])`\n\nReturns a promise.\n\n### `writeYamlFile.sync(filepath, data, [options])`\n\n#### `options`\n\nSame options that can be passed in to [js-yaml](https://www.npmjs.com/package/js-yaml#safedump-object---options-)\n\n##### mode\n\nType: `number`\nDefault `438` *(0666 in octal)*\n\n[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file.\n\n## Related\n\n- [load-yaml-file](https://github.com/LinusU/load-yaml-file) - Read and parse a YAML file\n\n## License\n\n[MIT](LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/zkochan/packages/tree/master/write-yaml-file" }, "scripts": { "test": "standard" }, "typings": "index.d.ts", "version": "2.0.0" }