{"analyzedAt":"2022-06-28T20:02:22.892Z","collected":{"metadata":{"name":"vue-numeric","scope":"unscoped","version":"2.5.0","description":"Input field component to display currency value based on Vue.","keywords":["component","currency","input","text","number","numeric","separator","vue","vue.js"],"date":"2022-05-24T03:06:23.470Z","author":{"name":"Kevin Ongko"},"publisher":{"username":"kevinongko","email":"kevin.ongko@gmail.com"},"maintainers":[{"username":"kevinongko","email":"kevin.ongko@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/kevinongko/vue-numeric.git"},"links":{"npm":"https://www.npmjs.com/package/vue-numeric","homepage":"https://github.com/kevinongko/vue-numeric#readme","repository":"https://github.com/kevinongko/vue-numeric","bugs":"https://github.com/kevinongko/vue-numeric/issues"},"license":"MIT","dependencies":{"accounting-js":"^1.1.1"},"devDependencies":{"avoriaz":"^4.0.0","babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-istanbul":"^4.1.4","babel-preset-env":"^1.6.0","chai":"^4.1.2","clean-webpack-plugin":"^0.1.16","codecov":"^3.8.1","cross-env":"^5.0.5","css-loader":"^0.28.7","eslint":"^4.6.0","eslint-plugin-vue":"^4.2.0","karma":"^6.3.16","karma-coverage":"^1.1.1","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.4","karma-sinon-chai":"^1.3.2","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"^0.0.31","karma-webpack":"^2.0.4","mocha":"^3.5.0","phantomjs-prebuilt":"^2.1.15","sinon":"^3.2.1","sinon-chai":"^2.13.0","vue":"^2.4.2","vue-loader":"^13.0.4","vue-template-compiler":"^2.4.2","webpack":"^3.5.5"},"releases":[{"from":"2022-05-29T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-03-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":1},{"from":"2021-12-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":1},{"from":"2021-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":1},{"from":"2020-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":5}],"hasTestScript":true,"readme":"# vue-numeric\n\n[![npm](https://img.shields.io/npm/v/vue-numeric.svg?style=flat-square)](https://www.npmjs.com/package/vue-numeric)\n[![npm](https://img.shields.io/npm/dt/vue-numeric.svg?style=flat-square)](https://www.npmjs.com/package/vue-numeric)\n[![npm](https://img.shields.io/npm/dm/vue-numeric.svg?style=flat-square)](https://www.npmjs.com/package/vue-numeric)\n[![Build Status](https://img.shields.io/travis/kevinongko/vue-numeric.svg?style=flat-square)](https://travis-ci.org/kevinongko/vue-numeric)\n[![Codecov](https://img.shields.io/codecov/c/github/kevinongko/vue-numeric.svg?style=flat-square)](https://codecov.io/gh/kevinongko/vue-numeric)\n[![npm](https://img.shields.io/npm/l/vue-numeric.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\nInput field component to display a formatted currency value based on [Vue](https://vuejs.org/).\n\n[Live Demo](https://kevinongko.github.io/vue-numeric/)\n\n**Works with Vue 2.***\n\n## Installation\n\n### Install via CDN\n```html\n<script src=\"https://unpkg.com/accounting-js\"></script>\n<script src=\"https://unpkg.com/vue\"></script>\n<script src=\"https://unpkg.com/vue-numeric\"></script>\n\n<script>\n  Vue.use(VueNumeric.default)\n</script>\n```\n### Install via NPM\n```sh\n$ npm install vue-numeric --save\n```\n\n#### Register as Component\n```js\nimport Vue from 'vue'\nimport VueNumeric from 'vue-numeric'\n\nexport default {\n  name: 'App',\n\n  components: {\n    VueNumeric\n  }\n}\n```\n\n#### Register as Plugin\n```js\nimport Vue from 'vue'\nimport VueNumeric from 'vue-numeric'\n\nVue.use(VueNumeric)\n```\n\n## Usage\n\n![screen shot 2016-12-08 at 2 19 31 pm](https://cloud.githubusercontent.com/assets/15880638/21001265/f2322438-bd51-11e6-8985-f31a45702484.png)\n\n### Quick example\n\n```vue\n<template>\n  <vue-numeric currency=\"$\" separator=\",\" v-model=\"price\"></vue-numeric>\n</template>\n\n<script>\nimport VueNumeric from 'vue-numeric'\n\nexport default {\n  name: 'App',\n\n  components: {\n    VueNumeric\n  },\n\n  data: () => ({\n    price: ''\n  }),\n}\n</script>\n```\n\n### Currency symbol\n\nSet the `currency` prop to add a currency symbol within the input.\n\n```vue\n<vue-numeric currency=\"$\"></vue-numeric>\n```\n\n### Minimum & maximum constraint\n\nLimit the minimum and maximum value by using `min` and `max` props.\n\n- `min` defaults to `0`.\n- `min` and `max` accept `String` or `Number` values.\n\n```vue\n<vue-numeric v-bind:min=\"2000\" v-bind:max=\"10000\"></vue-numeric>\n```\n\n### Disable/enable negative values\n\n`minus` defaults to `false` (no negative numbers).\n\n```vue\n<vue-numeric v-bind:minus=\"false\"></vue-numeric>\n```\n\n### Enable decimal precision\n\nBy default the decimal value is disabled. To use decimals in the value, add the `precision` prop.\n- `precision` accept a `String` or `Number` numeric value.\n\n```vue\n<vue-numeric v-bind:precision=\"2\"></vue-numeric>\n```\n\n### Thousands separator\n- Default thousand separator's symbol is `,`.\n- Use the `separator` prop to change the thousands separator.\n- `separator` only accepts `space`, `,` or `.`.\n- When using the `.` or `space` as thousand separator, the decimal separator will be `,`.\n\n```vue\n<vue-numeric separator=\".\"></vue-numeric>\n```\n\n### Input placeholder when empty\n```vue\n<vue-numeric placeholder=\"only number allowed\"></vue-numeric>\n```\n\n### Value when empty\nBy default, when you clean the input the value is set to `0`. You can change this value to fit your needs.\n```vue\n<vue-numeric :empty-value=\"1\"></vue-numeric>\n```\n\n### Output Type\nBy default the value emitted for the input event is of type `Number`. However you may choose to get a `String` instead\nby setting the property `output-type` to `String`.\n```vue\n<vue-numeric output-type=\"String\"></vue-numeric>\n```\n\n## Props\n|Props|Description|Required|Type|Default|\n|-----|-----------|--------|----|-------|\n|currency|Currency prefix|false|String|-|\n|currency-symbol-position|Position of the symbol (accepted values: `prefix` or `suffix`)|false|String|`prefix`|\n|max|Maximum value allowed|false|Number|9007199254740991|\n|min|Minimum value allowed|false|Number|-9007199254740991|\n|minus|Enable/disable negative values|false|Boolean|`false`|\n|placeholder|Input placeholder|false|String|-|\n|empty-value|Value when input is empty|false|Number|0|\n|output-type|Output Type for input event|false|String|`String`|\n|precision|Number of decimals|false|Number|-|\n|separator|Thousand separator symbol (accepts `space`, `.` or `,`)|false|String|`,`|\n|decimal-separator|Custom decimal separator|false|String|-|\n|thousand-separator|Custom thousand separator|false|String|-|\n|read-only|Hide input field and show the value as text|false|Boolean|false|\n|read-only-class|Class for read-only element|false|String|''|\n|allow-clear|Use input type search|false|Boolean|false|\n\n## License\n\nVue-Numeric is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n\n## Support\nHello, I'm Kevin the maintainer of this project in my free time (which is getting lessen these days), if this project does help you in any way please consider to support me. Thanks :smiley:\n- [One-time donation via Paypal](https://www.paypal.me/kevinongko)"},"npm":{"downloads":[{"from":"2022-06-27T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":1931},{"from":"2022-06-21T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":9794},{"from":"2022-05-29T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":40062},{"from":"2022-03-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":125987},{"from":"2021-12-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":256579},{"from":"2021-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":544364}],"starsCount":2},"github":{"homepage":"https://kevinongko.github.io/vue-numeric/","starsCount":418,"forksCount":115,"subscribersCount":14,"issues":{"count":128,"openCount":15,"distribution":{"3600":13,"10800":3,"32400":9,"97200":14,"291600":14,"874800":6,"2624400":8,"7873200":12,"23619600":7,"70858800":24,"212576400":18},"isDisabled":false},"contributors":[{"username":"pareeohnos","commitsCount":1},{"username":"emilioeduardob","commitsCount":4},{"username":"kevinongko","commitsCount":135},{"username":"darrylhein","commitsCount":2},{"username":"sorcerdon","commitsCount":1},{"username":"tochoromero","commitsCount":2},{"username":"dimailn","commitsCount":1},{"username":"DesertSnow","commitsCount":1},{"username":"dependabot[bot]","commitsCount":5},{"username":"mo3rfan","commitsCount":3},{"username":"knagyorg","commitsCount":2},{"username":"morloderex","commitsCount":1},{"username":"Flavsditz","commitsCount":1},{"username":"subtronic","commitsCount":1}],"commits":[{"from":"2022-06-21T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-05-29T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2022-03-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2021-12-30T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0},{"from":"2021-06-28T00:00:00.000Z","to":"2022-06-28T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":5078,"testsSize":13202},"badges":[{"urls":{"original":"https://img.shields.io/npm/v/vue-numeric.svg?style=flat-square","shields":"https://img.shields.io/npm/v/vue-numeric.svg","content":"https://img.shields.io/npm/v/vue-numeric.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}},{"urls":{"original":"https://img.shields.io/npm/dt/vue-numeric.svg?style=flat-square","shields":"https://img.shields.io/npm/dt/vue-numeric.svg","content":"https://img.shields.io/npm/dt/vue-numeric.json"},"info":{"service":"npm","type":"downloads","modifiers":{"type":"dt"}}},{"urls":{"original":"https://img.shields.io/npm/dm/vue-numeric.svg?style=flat-square","shields":"https://img.shields.io/npm/dm/vue-numeric.svg","content":"https://img.shields.io/npm/dm/vue-numeric.json"},"info":{"service":"npm","type":"downloads","modifiers":{"type":"dm"}}},{"urls":{"original":"https://img.shields.io/travis/kevinongko/vue-numeric.svg?style=flat-square","service":"https://api.travis-ci.org/kevinongko/vue-numeric.svg","shields":"https://img.shields.io/travis/kevinongko/vue-numeric.svg","content":"https://img.shields.io/travis/kevinongko/vue-numeric.json"},"info":{"service":"travis","type":"build"}},{"urls":{"original":"https://img.shields.io/codecov/c/github/kevinongko/vue-numeric.svg?style=flat-square","service":"https://codecov.io/github/kevinongko/vue-numeric/graphs/badge.svg","shields":"https://img.shields.io/codecov/c/github/kevinongko/vue-numeric.svg","content":"https://img.shields.io/codecov/c/github/kevinongko/vue-numeric.json"},"info":{"service":"codecov","type":"coverage"}},{"urls":{"original":"https://img.shields.io/npm/l/vue-numeric.svg?style=flat-square","shields":"https://img.shields.io/npm/l/vue-numeric.svg","content":"https://img.shields.io/npm/l/vue-numeric.json"},"info":{"service":"npm","type":"license","modifiers":{"type":"l"}}}],"linters":["eslint"],"coverage":0.98}},"evaluation":{"quality":{"carefulness":0.84,"tests":0.747,"health":1,"branding":0.6},"popularity":{"communityInterest":563,"downloadsCount":41995.666666666664,"downloadsAcceleration":-55.49438736681884,"dependentsCount":0},"maintenance":{"releasesFrequency":0.33595890410958906,"commitsFrequency":0,"openIssues":1,"issuesDistribution":0}},"score":{"final":0.525288719942274,"detail":{"quality":0.9463175505465646,"popularity":0.1896955850808704,"maintenance":0.5}}}