{"_id":"@dovicsin/bulk-file-creator","_rev":"2-be420803eeaf95d65f6259926280429e","name":"@dovicsin/bulk-file-creator","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@dovicsin/bulk-file-creator","version":"1.0.0","description":"Create bulk file from table (supported: xlsx,xls,ods)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["files creator","xlsx"],"bin":{"bulk-file-creator":"index.js"},"author":{"name":"Tamas Dovicsin","email":"truetomket@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dovicsin/bulk-file-creator.git"},"bugs":{"url":"https://github.com/dovicsin/bulk-file-creator/issues"},"homepage":"https://github.com/dovicsin/bulk-file-creator#readme","dependencies":{"convert-excel-to-json":"^1.7.0","yargs":"^17.7.2"},"gitHead":"24f236287f7de8cfa9350d469f58efe60355e5ca","_id":"@dovicsin/bulk-file-creator@1.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-D+oKG5moDfDu+bhpYy8n3AuquaMMcrOLCPwFZui63oxVLhCjOG0u6++l6KnVBBBIE1ix8lw1umInkWHIceiBDA==","shasum":"863064fe2af601d692da4e4af32706f995066bee","tarball":"https://registry.npmjs.org/@dovicsin/bulk-file-creator/-/bulk-file-creator-1.0.0.tgz","fileCount":4,"unpackedSize":6210,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDw/CzfiojijYgc9QU4zweeWEL/B3R+0hog9qe3sHABgAiEA4fz0owq+8EKWD5/nDO9T3zUUEhbAX3I9QC++zyI8diM="}]},"_npmUser":{"name":"dovicsin","email":"truetomket@gmail.com"},"directories":{},"maintainers":[{"name":"dovicsin","email":"truetomket@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-file-creator_1.0.0_1686034902621_0.3389336373709051"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dovicsin/bulk-file-creator","version":"1.0.1","description":"Create bulk file from table (supported: xlsx,xls,ods)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["files creator","xlsx"],"bin":{"bulk-file-creator":"index.js"},"author":{"name":"Tamas Dovicsin","email":"truetomket@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dovicsin/bulk-file-creator.git"},"bugs":{"url":"https://github.com/dovicsin/bulk-file-creator/issues"},"homepage":"https://github.com/dovicsin/bulk-file-creator#readme","dependencies":{"convert-excel-to-json":"^1.7.0","yargs":"^17.7.2"},"gitHead":"29b7d352a358a803015f00b1f3161383b0d6d60c","_id":"@dovicsin/bulk-file-creator@1.0.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-y5zldbMzSar5tGFupHy6wOkU/a/iYM9lCQvzlgUbJN4scAdsNY+YaP/1aEu7ofirQKjrOHquCIxSswFhTNF6Iw==","shasum":"ccf4c9bc97ccf20365738d5261f985fd540ab3b9","tarball":"https://registry.npmjs.org/@dovicsin/bulk-file-creator/-/bulk-file-creator-1.0.1.tgz","fileCount":4,"unpackedSize":6231,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxpIfO6/61YdryF/hKMrVAfW5TmnNKsjXKS2NuwkPeWAIhAK8fVDefVothOpes58x+gh0Cz0vsF+F2pwBuTuHlWyxf"}]},"_npmUser":{"name":"dovicsin","email":"truetomket@gmail.com"},"directories":{},"maintainers":[{"name":"dovicsin","email":"truetomket@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-file-creator_1.0.1_1686035204554_0.19876275879977934"},"_hasShrinkwrap":false},"1.0.3":{"name":"@dovicsin/bulk-file-creator","version":"1.0.3","description":"Create bulk file from table (supported: xlsx,xls,ods)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["files creator","xlsx"],"bin":{"bulk-file-creator":"index.js"},"author":{"name":"Tamas Dovicsin","email":"truetomket@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dovicsin/bulk-file-creator.git"},"bugs":{"url":"https://github.com/dovicsin/bulk-file-creator/issues"},"homepage":"https://github.com/dovicsin/bulk-file-creator#readme","dependencies":{"convert-excel-to-json":"^1.7.0","yargs":"^17.7.2"},"gitHead":"57cb433b943ebe85210e6ed635495091227adedb","_id":"@dovicsin/bulk-file-creator@1.0.3","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-KSEtobtnGSlNdgckdCdD3Mi6fohn+qp5QhPeBSELhE9TFSAZOxcRDE/TtE9c1UpwHcmebN5vPLvb9IES4Bp38Q==","shasum":"c4ce08977cbc37132435174c3e503d25715f593b","tarball":"https://registry.npmjs.org/@dovicsin/bulk-file-creator/-/bulk-file-creator-1.0.3.tgz","fileCount":4,"unpackedSize":6207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/UDTMTJgai8uab+KVmEEdE0q0BZRuN29FWW7QsZFZqAIgVH0TNEr4SEkT/oOBxEK7RXo9Mv77CX8MmaTEW0a6cRk="}]},"_npmUser":{"name":"dovicsin","email":"truetomket@gmail.com"},"directories":{},"maintainers":[{"name":"dovicsin","email":"truetomket@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bulk-file-creator_1.0.3_1686143357513_0.3140623990755216"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-06T07:01:42.554Z","1.0.0":"2023-06-06T07:01:42.759Z","modified":"2023-06-07T13:09:17.792Z","1.0.1":"2023-06-06T07:06:44.680Z","1.0.3":"2023-06-07T13:09:17.680Z"},"maintainers":[{"name":"dovicsin","email":"truetomket@gmail.com"}],"description":"Create bulk file from table (supported: xlsx,xls,ods)","homepage":"https://github.com/dovicsin/bulk-file-creator#readme","keywords":["files creator","xlsx"],"repository":{"type":"git","url":"git+https://github.com/dovicsin/bulk-file-creator.git"},"author":{"name":"Tamas Dovicsin","email":"truetomket@gmail.com"},"bugs":{"url":"https://github.com/dovicsin/bulk-file-creator/issues"},"license":"MIT","readme":"# Bulk file creator\n\nCreate bulk files with or without structured directories. Be it a configuration file or a plain text file. \n\nThe source should be a plain table that contains the header and beyond that each row will be a separate file. Just parameterize it with the appropriate flags and you're ready with lots of new files.\n\n## Install\n\n```sh\nnpm install --global @dovicsin/bulk-file-creator\n```\n\n## Usage\n\n```sh\nbulk-file-creator -s source.xlsx\n```\n\n## Flags\n\n| Name | Flag | Short | Default | Required | Description |\n|------|------|-------|---------|----------|-------------|\n| Source file | --source | -s | None | true | Source file (supported: xlsx, xls, ods) |\n| Target directory | --target | -t | dist/ | false | Target directory when saved all file |\n| Create dirs | --dirs | -d | true | false | Create directory every files |\n| Add header | --addheaderkey | -a | true | false | Add header key in content with join separator |\n| Join | --join | -j | = | false | The target file content line and header separator |\n\n## Source format headers\n\n- `name` - First column contained the file names\n- `extension` - Second column contained all file extension (not required)\n- Every other column contained file content. The first row value is a line parameter name.\n\n## Example source (sheet-1)\n| name | extension | TITLE | DESCRIPTION | DATE | ETC |\n|------|-----------|-------|-------------|------|-----|\n| file-1 | txt | First title | Description value | 2023 | etc parameters |\n| file-2 | txt | Second title | Description value | 2020 | other |\n| file-3 | pdf | Pdf title | Pdf  desc | 2024 | ... |\n\n## Result \n```sh\nbulk-file-creator -s source.xlsx\n```\n```\ndist\n  sheet-1\n    file-1\n      file-1.txt\n    file-2\n      file-2.txt\n    file-3\n      file-3.txt\n```\n\n**Without plus dirs**\n```sh\nbulk-file-creator -s source.xlsx -d false\n```\n```\ndist\n  sheet-1\n    file-1.txt\n    file-2.txt\n    file-3.txt\n```\n\n### file-1.txt\n```\nTITLE=First title\nDESCRIPTION=Description value\nDATE=2023\nETC=etc parameters\n```\n\n## Example simple content\n\n```sh\nbulk-file-creator -s source.xlsx -a false\n```\n\n| name | extension | CONTENT |\n|------|-----------|---------|\n| file-1 | txt | First content \\n more lines |\n| file-2 | txt | Sec content |\n| file-3 | txt | Content |\n\n**file-1 final content**\n```text\nFirst content\nmore lines\n```\n\n## Supported source extensions\n\n- xlsx\n- xls\n- ods\n\n","readmeFilename":"README.md"}