{"_id":"@wrote/write","_rev":"299982","name":"@wrote/write","description":"Write a file to the filesystem.","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"zvr","email":""}],"time":{"modified":"2024-01-31T16:05:52.000Z","created":"2018-09-28T14:03:22.535Z","1.0.4":"2019-04-10T14:42:57.116Z","1.0.3":"2019-04-02T18:38:52.818Z","1.0.2":"2019-01-14T22:21:44.241Z","1.0.1":"2019-01-14T13:51:07.697Z","1.0.0":"2018-09-28T14:03:22.535Z"},"users":{},"author":{"name":"Anton","email":"anton@adc.sh"},"repository":{"type":"git","url":"git://github.com/wrote/write.git"},"versions":{"1.0.4":{"name":"@wrote/write","version":"1.0.4","description":"Write a file to the filesystem.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/write.git"},"keywords":["write","wrote","filesystem","fs","stream","data","file","content"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/write/issues"},"homepage":"https://github.com/wrote/write#readme","devDependencies":{"alamode":"^1.9.2","documentary":"^1.23.4","eslint-config-artdeco":"1.0.1","temp-context":"^2.1.3","yarn-s":"1.1.0","zoroaster":"^3.11.4"},"dependencies":{"erotic":"^2.1.0"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/write@1.0.4","dist":{"shasum":"ad2c4e667b3e2bd5f37bb844d6b78b55952c391f","size":2833,"noattachment":false,"key":"/@wrote/write/-/@wrote/write-1.0.4.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/write/download/@wrote/write-1.0.4.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write_1.0.4_1554907376953_0.30002558870647755"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:40.915Z","publish_time":1554907377116,"_cnpm_publish_time":1554907377116},"1.0.3":{"name":"@wrote/write","version":"1.0.3","description":"Write a file to the filesystem.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"alanode","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/write.git"},"keywords":["write","wrote","filesystem","fs","stream","data"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/write/issues"},"homepage":"https://github.com/wrote/write#readme","devDependencies":{"alamode":"1.9.0","documentary":"1.23.2","eslint-config-artdeco":"1.0.1","temp-context":"2.1.2","yarn-s":"1.1.0","zoroaster":"3.11.2"},"dependencies":{"erotic":"2.0.3"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/write@1.0.3","dist":{"shasum":"1bc141ad12035674aece77262b385cf2db6ba68e","size":2787,"noattachment":false,"key":"/@wrote/write/-/@wrote/write-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/write/download/@wrote/write-1.0.3.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write_1.0.3_1554230332693_0.8745308899417914"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:39.287Z","publish_time":1554230332818,"_cnpm_publish_time":1554230332818},"1.0.2":{"name":"@wrote/write","version":"1.0.2","description":"Write a file to the filesystem.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/write.git"},"keywords":["write","wrote","filesystem","fs","stream","data"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/write/issues"},"homepage":"https://github.com/wrote/write#readme","devDependencies":{"alamode":"1.6.1","documentary":"1.20.1","eslint-config-artdeco":"1.0.1","temp-context":"2.1.0","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"erotic":"2.0.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/write@1.0.2","dist":{"shasum":"0a781e76d530a9bf2846af9709aaad209d09ba14","size":2519,"noattachment":false,"key":"/@wrote/write/-/@wrote/write-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/write/download/@wrote/write-1.0.2.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write_1.0.2_1547504504068_0.05769831625295785"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:38.213Z","publish_time":1547504504241,"_cnpm_publish_time":1547504504241},"1.0.1":{"name":"@wrote/write","version":"1.0.1","description":"Write a file to the filesystem.","main":"build","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build -s","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/write.git"},"keywords":["write","wrote","filesystem","fs","stream","data"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/write/issues"},"homepage":"https://github.com/wrote/write#readme","devDependencies":{"alamode":"1.6.1","documentary":"1.20.1","eslint-config-artdeco":"1.0.1","temp-context":"2.1.0","yarn-s":"1.1.0","zoroaster":"3.6.6"},"dependencies":{"erotic":"2.0.1"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/write@1.0.1","dist":{"shasum":"3bcc4d73428bf73c02f916bbc7a22455464ebe08","size":2496,"noattachment":false,"key":"/@wrote/write/-/@wrote/write-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/write/download/@wrote/write-1.0.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write_1.0.1_1547473867553_0.4060850675287433"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:36.543Z","publish_time":1547473867697,"_cnpm_publish_time":1547473867697},"1.0.0":{"name":"@wrote/write","version":"1.0.0","description":"Write a file to the filesystem.","main":"build","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc documentary -o README.md","b":"alamode src -o build","d":"yarn-s d1","d1":"NODE_DEBUG=doc doc src/index.js -g","build":"yarn-s d b doc","rec":"NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f","e":"node example","example/":"yarn e example/example.js"},"repository":{"type":"git","url":"git://github.com/wrote/write.git"},"keywords":["write","wrote","filesystem","fs","stream","data"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/wrote/write/issues"},"homepage":"https://github.com/wrote/write#readme","devDependencies":{"alamode":"1.5.1","documentary":"1.20.1","eslint-config-artdeco":"1.0.1","temp-context":"1.3.0","yarn-s":"1.1.0","zoroaster":"3.5.2"},"dependencies":{"erotic":"2.0.1"},"licenseText":"MIT License\n\nCopyright (c) 2018 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@wrote/write@1.0.0","dist":{"shasum":"4f8d5339d0bd46d71f2f5997ed786a6e9ed88941","size":2724,"noattachment":false,"key":"/@wrote/write/-/@wrote/write-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@wrote/write/download/@wrote/write-1.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write_1.0.0_1538143402418_0.09136693764422876"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:34.903Z","publish_time":1538143402535,"_cnpm_publish_time":1538143402535}},"readme":"# @wrote/write\n\n[![npm version](https://badge.fury.io/js/%40wrote%2Fwrite.svg)](https://npmjs.org/package/@wrote/write)\n\n`@wrote/write` is a package to write a file to the filesystem.\n\n```sh\nyarn add -E @wrote/write\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`async write(path: string, data?: string|Buffer)`](#async-writepath-stringdata-stringbuffer-void)\n- [Copyright](#copyright)\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/0.svg?sanitize=true\"></a></p>\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport write from '@wrote/write'\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/1.svg?sanitize=true\"></a></p>\n\n## `async write(`<br/>&nbsp;&nbsp;`path: string,`<br/>&nbsp;&nbsp;`data?: string|Buffer,`<br/>`): void`\n\nWrite data to a file on the filesystem.\n\n```js\nimport write from '@wrote/write'\n\nconst Write = async (path) => {\n  await write(path, '> example-data')\n  console.log('Written data to %s:', path)\n}\n```\n```\nWritten data to example/temp/example.txt:\n> example-data\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/2.svg?sanitize=true\"></a></p>\n\n## Copyright\n\n<table>\n  <tr>\n    <th>\n      <a href=\"https://artd.eco\">\n        <img src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\" alt=\"Art Deco\" />\n      </a>\n    </th>\n    <th>© <a href=\"https://artd.eco\">Art Deco</a> for <a href=\"https://wrote.cc\">Wrote</a> 2019</th>\n    <th>\n      <a href=\"https://wrote.cc\">\n        <img src=\"https://avatars3.githubusercontent.com/u/40831417?s=100\" width=\"100\" alt=\"Wrote\" />\n      </a>\n    </th>\n    <th>\n      <a href=\"https://www.technation.sucks\" title=\"Tech Nation Visa\">\n        <img src=\"https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif\"\n          alt=\"Tech Nation Visa\" />\n      </a>\n    </th>\n    <th><a href=\"https://www.technation.sucks\">Tech Nation Visa Sucks</a></th>\n  </tr>\n</table>\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/-1.svg?sanitize=true\"></a></p>","_attachments":{},"homepage":"https://github.com/wrote/write#readme","bugs":{"url":"https://github.com/wrote/write/issues"},"license":"MIT"}