{"analyzedAt":"2022-06-30T03:32:18.776Z","collected":{"metadata":{"name":"prhone-scp","scope":"unscoped","version":"0.1.4","description":"Simple config parser","keywords":["file","config","parser","module","prhone"],"date":"2016-06-17T11:14:34.954Z","author":{"name":"Romel Pérez","email":"ronelprhone@gmail.com","url":"http://romelperez.com","username":"romelperez"},"publisher":{"username":"romelperez","email":"ronelprhone@gmail.com"},"maintainers":[{"username":"romelperez","email":"ronelprhone@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/romelperez/prhone-scp.git"},"links":{"npm":"https://www.npmjs.com/package/prhone-scp","homepage":"https://github.com/romelperez/prhone-scp","repository":"https://github.com/romelperez/prhone-scp","bugs":"https://github.com/romelperez/prhone-scp/issues"},"license":"MIT","dependencies":{"underscore":"^1.8.3"},"releases":[{"from":"2022-05-31T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":1},{"from":"2022-04-01T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":1},{"from":"2022-01-01T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":1},{"from":"2021-06-30T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":1},{"from":"2020-06-30T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"# PRHONE SCP\n\n[![npm version](https://badge.fury.io/js/prhone-scp.svg)](https://badge.fury.io/js/prhone-scp)\n[![Build Status](https://travis-ci.org/romelperez/prhone-scp.svg?branch=master)](https://travis-ci.org/romelperez/prhone-scp)\n\n> Simple config parser.\n\nParse simple config files to extract configurable information for your projects.\n\n## Install\n\n```bash\nnpm install --save prhone-scp\n```\n\n## Example\n\n### __dirname + '/data/config.conf'\n\n```text\n# Config file.\n# Comments start with \"#\".\n\nUSER romel\n\nPASS 123\n\nNAMES\nmaria\njohn\nkaren\n\nADDRESS\nStreet 987 ave 456\n```\n\n### __dirname + '/app.js'\n\n```js\nvar scp = require('prhone-scp');\n\n// I recommend token names to be uppercase.\nscp.config({\n  //encoding: 'utf8',\n  tokens: {\n    USER: 'line',\n    PASS: 'line',\n    NAMES: 'multiline',\n    ADDRESS: function (data) {\n      data = data.toUpperCase();\n      return data;\n    }\n  }\n});\n\nscp.parse(__dirname +'/data/config.conf', function (err, conf) {\n  if (err) throw err;\n\n  console.log(conf.USER);  // 'romel'\n  console.log(conf.PASS);  // '123'\n  console.log(conf.NAMES);  // ['natalia', 'john', 'karen']\n  console.log(conf.ADDRESS);  // 'STREET 987 AVE 456'\n});\n```\n\n## License\n\n[MIT](https://github.com/romelperez/prhone-scp/blob/master/LICENSE)"},"npm":{"downloads":[{"from":"2022-06-29T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":0},{"from":"2022-06-23T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":9},{"from":"2022-05-31T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":21},{"from":"2022-04-01T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":63},{"from":"2022-01-01T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":96},{"from":"2021-06-30T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":201}],"starsCount":0},"github":{"starsCount":0,"forksCount":0,"subscribersCount":2,"issues":{"count":0,"openCount":0,"distribution":{"3600":0,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":false},"contributors":[{"username":"romelperez","commitsCount":14}],"commits":[{"from":"2022-06-23T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":0},{"from":"2022-05-31T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":0},{"from":"2022-04-01T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":0},{"from":"2022-01-01T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":0},{"from":"2021-06-30T00:00:00.000Z","to":"2022-06-30T00:00:00.000Z","count":0}],"statuses":[{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":1257,"testsSize":4890,"hasNpmIgnore":true},"badges":[{"urls":{"original":"https://travis-ci.org/romelperez/prhone-scp.svg?branch=master","service":"https://api.travis-ci.org/romelperez/prhone-scp.svg?branch=master","shields":"https://img.shields.io/travis/romelperez/prhone-scp/master.svg","content":"https://img.shields.io/travis/romelperez/prhone-scp/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}}],"linters":["editorconfig","jshint"]}},"evaluation":{"quality":{"carefulness":0.45999999999999996,"tests":0.85,"health":1,"branding":0.15},"popularity":{"communityInterest":3,"downloadsCount":21,"downloadsAcceleration":0.032990867579908684,"dependentsCount":0},"maintenance":{"releasesFrequency":0.7591609589041095,"commitsFrequency":0,"openIssues":0.7,"issuesDistribution":0.7}},"score":{"final":0.5622453167613015,"detail":{"quality":0.873037971989388,"popularity":0.028003224153170737,"maintenance":0.8300937048882155}}}