{"_id":"@bytesoftio/helpers-file","_rev":"1-74f79e3e676b681d3f788ab1459f77fd","name":"@bytesoftio/helpers-file","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bytesoftio/helpers-file","version":"1.0.0","author":{"name":"Maxim Kott"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/bytesoftio/helpers-file.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"test":"jest","lint":"tsc --noEmit","build":"rm -rf dist && tsc -p tsconfig.build.json","docs":"doctoc readme.md && docster src/index.ts --out docs --tsconfig tsconfig.build.json","release":"yarn run build && np --no-release-draft"},"devDependencies":{"@bytesoftio/docster":"^1.0.0","@types/jest":"^25.1.4","@types/node":"^13.9.1","doctoc":"^1.4.0","jest":"^25.1.0","ts-jest":"^25.2.1","typescript":"^3.8.3"},"description":"## Installation","_id":"@bytesoftio/helpers-file@1.0.0","dist":{"shasum":"96436b1441df7d37b9dd7948f14025fbc2c2480f","integrity":"sha512-idzqsFXjkwyRE5SxYtM0GEWRWZihWeMS1R2KngsH9N9j62Iy7wcJ7w3OAq+lXCt5gmIrYZVVEUTXaPsQeeq5qw==","tarball":"https://registry.npmjs.org/@bytesoftio/helpers-file/-/helpers-file-1.0.0.tgz","fileCount":10,"unpackedSize":3065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf81RECRA9TVsSAnZWagAAwyIP/RKp99v6vnXv3wre0/lW\nv03ekP22VpNSvnTEoCIAMOo84QUhruzI+WvV9fmSv2eP0CMhwVgYjA+GeKNg\njyk/+oCndI0vsofJWbpioNNh7aen6IqHT+qqWFf6VnpPqpUeitXubh7I3Ppp\nM3HleDDmdGCw8vpuDiReglN/iyL2ctLci2gRz8PZ9iJ9L87RrTkpLNBr7t6N\nH0g7bcsCzxRNCo8ZaTRrEoZaa9QLXpxQHIPShbaGUZUSixNmA2KE3vlMZ/Sc\nv1kNpGQmGHiKLqG7D4VPlk05nA/0e31wZoVxuK4dx7DK4Zqzs7Y8WHO1CUq2\nBpgAFG/HD3nC5L/SnfK/LNET0tLHfrs2ZLJ7UBuP7aWRlDYI+BYHPSG+xfDW\nIYLZ1WshAAkPv873Fy7NVJQ3Dls3QB9ohgIrHKzz31qODGSEI4eM5rsAmDzX\n0g/HLcSNw2y+k8bRhyqklq+RCo2h/5G3wPI/kNvrgB0WtPJtaKkokn7jA5Lj\nmrXa5qAWdgfRvhWzLr9ZnZAumb5FB96REM84FnqpT6XgoToq27qa/bx5dW0u\nkG2E75+AuE2ST1Ywa+ADGpgy77r22+PzAHq6sYGJRH/Hvo4tPECY1GTp6uTP\nVV7hkQtIDiKLdNWoMfWPLqtrFpOOqfWdfiZKkxxG98jzjWISxX4A8zRfEmU0\nvRee\r\n=oFUk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEn/mS0+ioWOxMxyT78xczDUoiecp8FBir18bsuTQyxFAiBwUomvOYv58yiL6gb3XjU+JmWKbDVet5lWSwTANMJZQg=="}]},"_npmUser":{"name":"maximkott","email":"maximkott@gmail.com"},"directories":{},"maintainers":[{"name":"maximkott","email":"maximkott@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/helpers-file_1.0.0_1609782339913_0.7456647764338784"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-04T17:45:39.724Z","1.0.0":"2021-01-04T17:45:40.044Z","modified":"2022-04-04T21:22:23.650Z"},"maintainers":[{"name":"maximkott","email":"maximkott@gmail.com"}],"description":"## Installation","repository":{"type":"git","url":"https://github.com/bytesoftio/helpers-file.git"},"author":{"name":"Maxim Kott"},"license":"MIT","readme":"# @bytesoftio/helpers-file\n\n## Installation\n\n`yarn add @bytesoftio/helpers-file` or `npm install @bytesoftio/helpers-file`\n\n## Table of contents\n\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n\n- [Description](#description)\n- [Usage](#usage)\n  - [downloadAsFile](#downloadasfile)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## Description\n\nCollection of file related helpers.\n\n## Usage\n\n### downloadAsFile\n\nDownload any kind of data as a file (works only in browser).\n\n```ts\nimport { downloadAsFile } from \"@bytesoftio/helpers-file\"\n\nconst fileName = \"data.csv\"\nconst data = \"name,age\\nJohn,30\\nSnow,40\"\n\ndownloadAsFile(fileName, data)\n```\n\n\n","readmeFilename":"readme.md"}