UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

116 lines (115 loc) 3.93 kB
{ "_args": [ [ { "raw": "write-yaml-file@^1.0.1", "scope": null, "escapedName": "write-yaml-file", "name": "write-yaml-file", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/modules-yaml" ] ], "_from": "write-yaml-file@>=1.0.1 <2.0.0", "_id": "write-yaml-file@1.0.1", "_inCache": true, "_location": "/write-yaml-file", "_nodeVersion": "6.11.4", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/write-yaml-file_1.0.1_1521316471476_0.007788615276082433" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { "raw": "write-yaml-file@^1.0.1", "scope": null, "escapedName": "write-yaml-file", "name": "write-yaml-file", "rawSpec": "^1.0.1", "spec": ">=1.0.1 <2.0.0", "type": "range" }, "_requiredBy": [ "#DEV:/", "/@pnpm/modules-yaml" ], "_resolved": "https://registry.npmjs.org/write-yaml-file/-/write-yaml-file-1.0.1.tgz", "_shasum": "a1eb1e6babeb89c01034d4ab035c27d4fb77e2a1", "_shrinkwrap": null, "_spec": "write-yaml-file@^1.0.1", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/modules-yaml", "author": { "name": "Zoltan Kochan", "email": "z@kochan.io" }, "bugs": { "url": "https://github.com/zkochan/write-yaml-file/issues" }, "dependencies": { "graceful-fs": "^4.1.11", "js-yaml": "^3.8.1", "mkdirp": "^0.5.1", "pify": "^3.0.0", "write-file-atomic": "^2.0.0" }, "description": "Stringify and write YAML to a file atomically", "devDependencies": { "standard": "^11.0.1" }, "directories": {}, "dist": { "shasum": "a1eb1e6babeb89c01034d4ab035c27d4fb77e2a1", "tarball": "https://registry.npmjs.org/write-yaml-file/-/write-yaml-file-1.0.1.tgz", "fileCount": 5, "unpackedSize": 4174 }, "engines": { "node": ">=4" }, "files": [ "index.js", "index.d.ts" ], "gitHead": "73cdd5255dfef9ee6227d8d1b7390b95c43c74ea", "homepage": "https://github.com/zkochan/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[![Build Status](https://travis-ci.org/zkochan/write-yaml-file.svg?branch=master)](https://travis-ci.org/zkochan/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": "git+https://github.com/zkochan/write-yaml-file.git" }, "scripts": { "test": "standard" }, "typings": "index.d.ts", "version": "1.0.1" }