{"analyzedAt":"2022-07-09T06:40:39.381Z","collected":{"metadata":{"name":"joi-currency-code","scope":"unscoped","version":"3.0.1","description":"A Joi validator that validates whether a given input is a valid currency code, according to ISO 4217","date":"2020-03-15T05:43:48.780Z","author":{"name":"Hugo Muller-Downing","email":"npmjs@hugo.sx","url":"hu.md","username":"hugomd"},"publisher":{"username":"hugomd","email":"npmjs@hugo.sx"},"maintainers":[{"username":"hugomd","email":"npmjs@hugo.sx"}],"repository":{"type":"git","url":"git+https://github.com/hugomd/joi-currency-code.git"},"links":{"npm":"https://www.npmjs.com/package/joi-currency-code","homepage":"https://github.com/hugomd/joi-currency-code#readme","repository":"https://github.com/hugomd/joi-currency-code","bugs":"https://github.com/hugomd/joi-currency-code/issues"},"license":"MIT","dependencies":{"is-currency-code":"1.2.0"},"devDependencies":{"@hapi/joi":"^16.1.4","ava":"^1.4.1","xo":"^0.24.0"},"peerDependencies":{"@hapi/joi":"^16.1.4"},"releases":[{"from":"2022-06-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-04-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2022-01-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2021-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1},{"from":"2020-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":1}],"hasTestScript":true,"hasSelectiveFiles":true,"readme":"# 💰 joi-currency-code\n\n[![npm](https://img.shields.io/npm/v/joi-currency-code.svg?maxAge=2592000)](https://www.npmjs.com/package/joi-currency-code) [![Build Status](https://travis-ci.org/hugomd/joi-currency-code.svg?branch=master)](https://travis-ci.org/hugomd/joi-currency-code/builds) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) \n\n> A Joi validator that validates whether a given input is a valid currency code, according to ISO 4217.\n\n## Installation\n\n```javascript\nnpm install joi-currency-code\n```\n\n## Usage\n\n```javascript\nconst Joi = require('joi-currency-code')(require('@hapi/joi'));\n\nconst schema = Joi.object({\n  code: Joi.string().currency()\n});\n\nJoi.validate({\n  code: 'aud'\n}, schema); // succeeds\n\nJoi.validate({\n  code: 'fake-currency'\n}, schema); // fails with ValidationError\n```\n\n## Contributing\n\n* `git clone git@github.com:hugomd/joi-currency-code.git`\n* `npm install`\n* Make your changes\n* Open a pull request and ask for review ✌️\n* Optional: use emoji in your commits 🔥\n\n## Related Repositories\n\n* [`is-currency`](https://github.com/hugomd/is-currency)\n* [`is-currency-code`](https://github.com/hugomd/is-currency-code)\n* [`is-currency-symbol`](https://github.com/hugomd/is-currency-symbol)"},"npm":{"downloads":[{"from":"2022-07-08T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":159},{"from":"2022-07-02T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":653},{"from":"2022-06-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":2339},{"from":"2022-04-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":8093},{"from":"2022-01-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":15511},{"from":"2021-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":25558}],"starsCount":0},"github":{"starsCount":8,"forksCount":4,"subscribersCount":2,"issues":{"count":18,"openCount":5,"distribution":{"3600":5,"10800":0,"32400":0,"97200":1,"291600":1,"874800":4,"2624400":0,"7873200":1,"23619600":1,"70858800":5,"212576400":0},"isDisabled":false},"contributors":[{"username":"gapoorva","commitsCount":1},{"username":"emanueleliardo","commitsCount":5},{"username":"hugomd","commitsCount":7},{"username":"dependabot[bot]","commitsCount":1},{"username":"tanguybernard","commitsCount":1}],"commits":[{"from":"2022-07-02T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-06-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-04-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2022-01-10T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0},{"from":"2021-07-09T00:00:00.000Z","to":"2022-07-09T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":1290,"testsSize":1082},"badges":[{"urls":{"original":"https://img.shields.io/npm/v/joi-currency-code.svg?maxAge=2592000","shields":"https://img.shields.io/npm/v/joi-currency-code.svg","content":"https://img.shields.io/npm/v/joi-currency-code.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}},{"urls":{"original":"https://travis-ci.org/hugomd/joi-currency-code.svg?branch=master","service":"https://api.travis-ci.org/hugomd/joi-currency-code.svg?branch=master","shields":"https://img.shields.io/travis/hugomd/joi-currency-code/master.svg","content":"https://img.shields.io/travis/hugomd/joi-currency-code/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}}],"linters":["xo"]}},"evaluation":{"quality":{"carefulness":0.9199999999999999,"tests":0.6,"health":1,"branding":0.3},"popularity":{"communityInterest":19,"downloadsCount":2697.6666666666665,"downloadsAcceleration":6.0237633181126355,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9,"issuesDistribution":0.9}},"score":{"final":0.6563060379231551,"detail":{"quality":0.9318461831458337,"popularity":0.07655397455491723,"maintenance":0.9998808339576686}}}