{"_id":"@agile-central-technical-services/utils-file-utils","_rev":"2-1fbdd2da0a7963a0de6554b8cf0c2c1c","name":"@agile-central-technical-services/utils-file-utils","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@agile-central-technical-services/utils-file-utils","version":"0.0.1","description":"File utilities for Technical Services apps","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/RallyTechServices/utils-file-utils.git"},"keywords":["rally","agile","central","technical","services","file","utilities","csv","grid","export"],"author":{"name":"Tyr Johanson"},"license":"ISC","bugs":{"url":"https://github.com/RallyTechServices/utils-file-utils/issues"},"homepage":"https://github.com/RallyTechServices/utils-file-utils#readme","dependencies":{"file-saver":"^1.3.8"},"gitHead":"7a3146ba1943df2cec93a1ffbd675c729659ac6f","_id":"@agile-central-technical-services/utils-file-utils@0.0.1","_shasum":"2ade466e642307b3e1f9383bd95507ea1c705986","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.4","_npmUser":{"name":"tyrjo","email":"tyrjo@yahoo.com"},"dist":{"shasum":"2ade466e642307b3e1f9383bd95507ea1c705986","tarball":"https://registry.npmjs.org/@agile-central-technical-services/utils-file-utils/-/utils-file-utils-0.0.1.tgz","integrity":"sha512-d94fduJCdeF+LePvwUBus+LlX/3RvBaOcH8wXP38vOuOtKR5KySCXrXm4s/MaJvaIhqBEhzn0cPOMQV+9z3LrQ==","fileCount":4,"unpackedSize":15175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpBtHCRA9TVsSAnZWagAAVRUQAKRcLM7vYyolYh+2Z+qe\n8XibXcyQQUpSwK9ZYzPl7R9xsjxlu1hIQbXZAaPVdTuw9W0QQ9vxXH/2Un1o\nZHzGtcLuFbMRulLQE108W5t0JN/4OhWq5OvX4tLbhi7cPNr31XOqRqyTBy9H\nRWcxUtoIZlKwk0504p0C39Js33HQW1Xzp8Icfq/3CGfGTvDr6m0qrzMWSCw/\nk9t0h28pDTvo4VWPJecL3hhvUf0f6aRYjdi0Re1hd+9PzhBgRDC/4+oYmClo\n9fQi2PV+5gYud2H5+lVnBwDOO6k3BkR1VQOJ3GBXkhE91P2SMYQMqn+SaLCo\ndlffB1bxywFtJJDwJmoZH1gz8n19Hf5NCqCOZ6biVOU5svMETXdci6ASeZgS\nIzhRz2VMBq6FlRDl1w3fSrXu9H3yktNCeBkWTQhaPK0BbsanV73Ycs7L3RDU\nAUg+iPHbGp3NmpeckIN4HUDd6crCfRzPrESnBOQyTkRun4/oX5kHcGqqOgO4\nS3ChYWiEf1Zf7+4Bd5G3CafG2vL0JvGovYbDFg5N3pblO2JHxeiLLE68e1B2\nqgzLEkfSnTjvPXxfJi4a0nBOBZyhR15vIxt9y2m2ZA+MQosHPvh0nENP3G7j\n02GAR9hClpMDixHaGz8QJB543eCf0AfqwdtgUUNdGF52ZPoAXxXNBvHe+mVa\nxCCW\r\n=3aAM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZqSyjJJ0L+sHs3n9BoGQDcsv7/P3O2ogk03vP93pD6gIgNWLG+2HK9qNM+/xxTIEnYrcbETh6gUL3ffqR36fBoWU="}]},"maintainers":[{"name":"tyrjo","email":"tyrjo@yahoo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-file-utils_0.0.1_1537481542689_0.09292986819912374"},"_hasShrinkwrap":false},"1.0.0":{"name":"@agile-central-technical-services/utils-file-utils","version":"1.0.0","description":"File utilities for Technical Services apps","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/RallyTechServices/utils-file-utils.git"},"keywords":["rally","agile","central","technical","services","file","utilities","csv","grid","export"],"author":{"name":"Tyr Johanson"},"license":"ISC","bugs":{"url":"https://github.com/RallyTechServices/utils-file-utils/issues"},"homepage":"https://github.com/RallyTechServices/utils-file-utils#readme","dependencies":{"file-saver":"^1.3.8"},"gitHead":"25b7d631665e0d62a55fbab251a0e43febe6ffcb","_id":"@agile-central-technical-services/utils-file-utils@1.0.0","_shasum":"77be39e0fbbce10f8f333e331265a7cf077f0932","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.4","_npmUser":{"name":"tyrjo","email":"tyrjo@yahoo.com"},"dist":{"shasum":"77be39e0fbbce10f8f333e331265a7cf077f0932","tarball":"https://registry.npmjs.org/@agile-central-technical-services/utils-file-utils/-/utils-file-utils-1.0.0.tgz","integrity":"sha512-nrjoOki1fBEkdsjwjP6ATbcayQ4C+1T/b+ZiMacgB/iTPgqej9fU4z1D9+ZdHNVTgjAdWVh8ba8dx/wpoNspEw==","fileCount":4,"unpackedSize":15175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpBvvCRA9TVsSAnZWagAAQGoP/Rj1xLwZNdTSqd3kNSIa\nhToqKN6ZbLPAgnOpfEVS/YMa09C1T7F5hVqfEj2fVgpqTmu6XqLs7cRw7m6J\nuTEDohNk5flcD2CNsP7ttMj9YzQ/l3Ifq0c0cxLXYnKU0MyOVEd+9EYc6SS/\nYRom0FiqmzgSzDUh9b3B3/1NjPqAWD/6CSgUsAt75TPKuSw5bDhKOTaurz/l\npzknBBy4RthQxrktGVkD5zSx/wTxEZfargvyTU6I2trxzVVBqh5jEifubDsh\njlPBpp+7VUULVZMjyFsdJmn5/n6HdymJn9t0SLOZsJq8/ib7A7PE19/aHIr7\n4gCNtOk84r5U8+fSCA11bY538u9HP9k4K7KmsJF7hVZs860kZSM8hvHbKf3W\nooF37pNE5oN6Wldldg6+NyPpdbAFCiTK4y/p8ar8m2HCGhcrtR1iGYiL4v+0\nEsP03pCwVG1Lq/rFqrXClLiAAkO+jSx0y7Cco4/DJkBeD3TkgpwAQjOV+3A1\nCY7/Hp3/jR/oXZVglzsPes3a5Fk/dYJaoCSJoBh7Aefegxryo1CN6WXyuG50\nYN7ruqhI2qBhP1FYnA0I0Kbz3hE8rbM9cSpP7OvRCEcAECb0y79gWEf6+snj\nfvbUqrktPh3sO20m2UJ67JwwNVJvhcdifHH2wxJkGfOe9Q3/jyjj1ASYCQ1V\nMu5C\r\n=ejB1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTbqzpfOANDoK6Orliyb1Q6VZ2Lzq2/PqxsNeUFla8OQIhAJgEf6bJnfd8JJLm9j7qz77WKpYfaI2hgGxFDqDQu6KI"}]},"maintainers":[{"name":"tyrjo","email":"tyrjo@yahoo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils-file-utils_1.0.0_1537481710340_0.3376163861698098"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-20T22:12:22.529Z","0.0.1":"2018-09-20T22:12:22.859Z","modified":"2022-04-04T11:57:18.822Z","1.0.0":"2018-09-20T22:15:10.493Z"},"maintainers":[{"name":"tyrjo","email":"tyrjo@yahoo.com"}],"description":"File utilities for Technical Services apps","homepage":"https://github.com/RallyTechServices/utils-file-utils#readme","keywords":["rally","agile","central","technical","services","file","utilities","csv","grid","export"],"repository":{"type":"git","url":"git+https://github.com/RallyTechServices/utils-file-utils.git"},"author":{"name":"Tyr Johanson"},"bugs":{"url":"https://github.com/RallyTechServices/utils-file-utils/issues"},"license":"ISC","readme":"# @agile-central-technical-services/utils-file-utils\n\nA collection of convenience functions related to saving data to files and exporting CSV from grids\n\n\n## Installation\n1. Install using npm (or yarn) `npm install '@agile-central-technical-services/utils-file-utils' -D`\n2. Add the file to the `javascript` section of `config.json`\n    ```\n     \"javascript\": [\n        \"node_modules/file-saver/FileSaver.min.js\",\n        \"node_modules/@agile-central-technical-services/utils-file-utils/index.js\",\n        ...\n    ```\n## Example usage\n\n```\nitems: [\n    {\n        xtype: 'rallybutton',\n        style: {'float': 'right'},\n        cls: 'secondary rly-small',\n        frame: false,\n        itemId: 'export-menu-button',\n        iconCls: 'icon-export'\n    }\n],\n\nlaunch: function() {\n    var exportButton = this.down('#export-menu-button')\n    exportButton.on('click', this._onExport, this);\n    ...\n},\n\n_onExport: function() {\n    var csv = [\"Variable Name,Value\"]\n    _.each(this.currentValues, function(value, key){\n       csv.push([key, value].join(',')) \n    });\n    csv = csv.join('\\r\\n');\n    CArABU.technicalservices.FileUtilities.saveCSVToFile(csv, 'query-counter.csv');\n}\n```\n\n## Developer Notes\nTo Update\n1. `npm version patch` - This will update the package.json to a new version and create a git tag (e.g. `v1.0.1`). It will also run the `postversion` script\nto push the changes and tag to GitHub.\n2. `npm publish --access public` - This will publish the new version to npmjs.org\n3. Create the new release in [`utils_file-utils/releases'](https://github.com/RallyTechServices/utils_file-utils/releases)\n\n","readmeFilename":"README.md"}