{"_id":"jquery-maskmoney","_rev":"11-2e6d8fca5ded16e1aa998765da9608bc","name":"jquery-maskmoney","description":"jQuery plugin to mask data entry in the input text in the form of money (currency)","dist-tags":{"latest":"3.0.2"},"versions":{"3.0.0":{"name":"jquery-maskmoney","filename":"jquery.maskMoney.min.js","description":"jQuery plugin to mask data entry in the input text in the form of money (currency)","version":"3.0.0","homepage":"https://github.com/plentz/jquery-maskmoney","repository":{"type":"git","url":"https://github.com/plentz/jquery-maskmoney.git"},"bugs":{"url":"https://github.com/plentz/jquery-maskmoney/issues"},"author":{"name":"Diego Plentz","email":"diego@plentz.org","url":"http://plentz.org"},"dependencies":{"jquery":">=1.6"},"npmName":"jquery-maskmoney","npmFileMap":[{"basePath":"/dist/","files":["jquery.maskMoney.min.js"]}],"devDependencies":{"amdefine":"latest","grunt":"latest","grunt-cli":"latest","grunt-contrib-concat":"latest","grunt-contrib-jshint":"latest","grunt-contrib-uglify":"latest","grunt-contrib-qunit":"latest","grunt-jquerymanifest":"latest","grunt-contrib-watch":"latest"},"licenses":[{"type":"MIT","url":"https://raw.github.com/plentz/jquery-maskmoney/master/LICENSE"}],"scripts":{"test":"grunt test --verbose"},"readme":"# jQuery maskMoney [![Build Status](https://travis-ci.org/plentz/jquery-maskmoney.png)](https://travis-ci.org/plentz/jquery-maskmoney)\n\nJust a simple way to create masks to your currency form fields with [jQuery](http://jquery.com/).\n\n***\n### Download\n\nTo get the latest(minified) version, [click here](https://raw.github.com/plentz/jquery-maskmoney/master/dist/jquery.maskMoney.min.js).\n\n***\n### Show Time!\n\nTo view a complete demonstration of it's features and usage, access our [examples page](http://plentz.github.com/jquery-maskmoney)!\n\n***\n### Usage:\n```html\n<head>\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\" type=\"text/javascript\"></script>\n  <script src=\"dist/jquery.maskMoney.min.js\" type=\"text/javascript\"></script>\n</head>\n<body>\n  <input type=\"text\" id=\"currency\" />\n</body>\n<script>\n  $(function() {\n    $('#currency').maskMoney();\n  })\n</script>\n```\n\n***\n### Options:\n\nThe options that you can set are:\n\n * `prefix`: the prefix to be displayed before(aha!) the value entered by the user(example: \"US$ 1234.23\"). default: ''\n * `suffix`: the prefix to be displayed after the value entered by the user(example: \"1234.23 €\"). default: ''\n * `affixesStay`: set if the prefix and suffix will stay in the field's value after the user exits the field. default: true\n * `thousands`: the thousands separator. default: ','\n * `decimal`: the decimal separator. default: '.'\n * `precision`: how many decimal places are allowed. default: 2\n * `allowZero`: use this setting to prevent users from inputing zero. default: false\n * `allowNegative`: use this setting to prevent users from inputing negative values. default: false\n\n__IMPORTANT__: if you try to bind maskMoney to a read only field, nothing will happen, since we ignore completely read only fields. So, if you have a read only field, try to bind maskMoney to it, it will not work. Even if you change the field removing the readonly property, you will need to re-bind maskMoney to make it work.\n\n***\n### Bonus!\n\nWe have 3 bonus methods that can be useful to you:\n\n * `.maskMoney('destroy')` removes maskMoney from an element.\n * `.maskMoney('mask')` apply the mask to your input. This method can work as a setter as well, if you pass a value to it, like this `.maskMoney('mask', 1999.99)`\n * `.maskMoney('unmasked')` return a float value (ex.: 'R$ 1.234,56' => 1234.56). PS: If you have only one input field, you should use this way `.maskMoney('unmasked')[0]`, since it will always return an array.\n\nYou can also configure maskMoney options using the data-* API instead of passing it as a hash in the `.maskMoney` method call. To use it, simply set the options using `data-<option>`, like this:\n\n ```html\n \t<input type=\"text\" data-symbol=\"R$ \" data-thousands=\".\" data-decimal=\",\" />\n ```\n\n And when you bind maskMoney to that field, we will read those options.\n\n***\n### Contributors:\n\n * [Aurélio Saraiva](mailto:aureliosaraiva@gmail.com)\n * [Raul Pereira da Silva](http://raulpereira.com)\n * [Diego Plentz](http://plentz.org)\n * [Otávio Ribeiro Medeiros](http://github.com/otaviomedeiros)\n * [Víctor Cruz](http://github.com/xtream)\n * [Synapse Studios](http://github.com/synapsestudios)\n * [Guilherme Garnier](http://blog.guilhermegarnier.com/)\n * [Plínio Balduino](http://github.com/pbalduino)\n * [Luis Fernando Gomes](https://github.com/luiscoms)\n * [Gary Moore](http://www.gmoore.net/)\n * [Daniel Loureiro](https://github.com/loureirorg)\n * [Thiago Silva](http://twitter.com/tafs7/)\n * [Guilherme Nagatomo](https://github.com/guilhermehn)\n\n***\n### License:\n\n__jQuery-maskMoney__ is released under the MIT license.\n","readmeFilename":"README.md","_id":"jquery-maskmoney@3.0.0","dist":{"shasum":"b8c37ee160ec961e5e590c1a39f5a7cec51d408a","tarball":"https://registry.npmjs.org/jquery-maskmoney/-/jquery-maskmoney-3.0.0.tgz","integrity":"sha512-Pz0kSOSnKuTJOSrh+hRaQUt/tlwray/oKhuxFMebL6BTUeDd9PNQvjMYVC2/DFFpuULdyHY0ekrmkqpyIWUvXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDCSnhVUrZK+SdoSC2AsSGCPZEsSWHgJD0b+tBh6VjtAiBnlmxcFh94C5zRvIduOj9jzutlBGqqRu1AGG3uJ22l6Q=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"plentz","email":"diego@plentz.org"},"maintainers":[{"name":"plentz","email":"diego@plentz.org"}],"directories":{}},"3.0.1":{"name":"jquery-maskmoney","filename":"jquery.maskMoney.min.js","description":"jQuery plugin to mask data entry in the input text in the form of money (currency)","version":"3.0.1","homepage":"https://github.com/plentz/jquery-maskmoney","repository":{"type":"git","url":"https://github.com/plentz/jquery-maskmoney.git"},"bugs":{"url":"https://github.com/plentz/jquery-maskmoney/issues"},"author":{"name":"Diego Plentz","email":"diego@plentz.org","url":"http://plentz.org"},"dependencies":{"jquery":">=1.6"},"npmName":"jquery-maskmoney","npmFileMap":[{"basePath":"/dist/","files":["jquery.maskMoney.min.js"]}],"devDependencies":{"amdefine":"latest","grunt":"latest","grunt-cli":"latest","grunt-contrib-concat":"latest","grunt-contrib-jshint":"latest","grunt-contrib-uglify":"latest","grunt-contrib-qunit":"latest","grunt-jquerymanifest":"latest","grunt-contrib-watch":"latest"},"licenses":[{"type":"MIT","url":"https://raw.github.com/plentz/jquery-maskmoney/master/LICENSE"}],"scripts":{"test":"grunt test --verbose"},"readme":"# jQuery maskMoney [![Build Status](https://travis-ci.org/plentz/jquery-maskmoney.png)](https://travis-ci.org/plentz/jquery-maskmoney)\n\nJust a simple way to create masks to your currency form fields with [jQuery](http://jquery.com/).\n\n***\n### Download\n\nTo get the latest(minified) version, [click here](https://raw.github.com/plentz/jquery-maskmoney/master/dist/jquery.maskMoney.min.js).\n\nYou can also use [CloudFlare's cdnjs](http://cdnjs.com/). Just choose the version you want to use [here](http://cdnjs.com/libraries/jquery-maskmoney/).\n\n***\n### Show Time!\n\nTo view a complete demonstration of it's features and usage, access our [examples page](http://plentz.github.com/jquery-maskmoney)!\n\n***\n### Usage:\n```html\n<head>\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\" type=\"text/javascript\"></script>\n  <script src=\"dist/jquery.maskMoney.min.js\" type=\"text/javascript\"></script>\n</head>\n<body>\n  <input type=\"text\" id=\"currency\" />\n</body>\n<script>\n  $(function() {\n    $('#currency').maskMoney();\n  })\n</script>\n```\n\n***\n### Options:\n\nThe options that you can set are:\n\n * `prefix`: the prefix to be displayed before(aha!) the value entered by the user(example: \"US$ 1234.23\"). default: ''\n * `suffix`: the prefix to be displayed after the value entered by the user(example: \"1234.23 €\"). default: ''\n * `affixesStay`: set if the prefix and suffix will stay in the field's value after the user exits the field. default: true\n * `thousands`: the thousands separator. default: ','\n * `decimal`: the decimal separator. default: '.'\n * `precision`: how many decimal places are allowed. default: 2\n * `allowZero`: use this setting to prevent users from inputing zero. default: false\n * `allowNegative`: use this setting to prevent users from inputing negative values. default: false\n\n__IMPORTANT__: if you try to bind maskMoney to a read only field, nothing will happen, since we ignore completely read only fields. So, if you have a read only field, try to bind maskMoney to it, it will not work. Even if you change the field removing the readonly property, you will need to re-bind maskMoney to make it work.\n\n***\n### Bonus!\n\nWe have 3 bonus methods that can be useful to you:\n\n * `.maskMoney('destroy')` removes maskMoney from an element.\n * `.maskMoney('mask')` apply the mask to your input. This method can work as a setter as well, if you pass a value to it, like this `.maskMoney('mask', 1999.99)`\n * `.maskMoney('unmasked')` return a float value (ex.: 'R$ 1.234,56' => 1234.56). PS: If you have only one input field, you should use this way `.maskMoney('unmasked')[0]`, since it will always return an array.\n\nYou can also configure maskMoney options using the data-* API instead of passing it as a hash in the `.maskMoney` method call. To use it, simply set the options using `data-<option>`, like this:\n\n ```html\n \t<input type=\"text\" data-symbol=\"R$ \" data-thousands=\".\" data-decimal=\",\" />\n ```\n\n And when you bind maskMoney to that field, we will read those options.\n\n***\n### Contributors:\n\n * [Aurélio Saraiva](mailto:aureliosaraiva@gmail.com)\n * [Raul Pereira da Silva](http://raulpereira.com)\n * [Diego Plentz](http://plentz.org)\n * [Otávio Ribeiro Medeiros](http://github.com/otaviomedeiros)\n * [Víctor Cruz](http://github.com/xtream)\n * [Synapse Studios](http://github.com/synapsestudios)\n * [Guilherme Garnier](http://blog.guilhermegarnier.com/)\n * [Plínio Balduino](http://github.com/pbalduino)\n * [Luis Fernando Gomes](https://github.com/luiscoms)\n * [Gary Moore](http://www.gmoore.net/)\n * [Daniel Loureiro](https://github.com/loureirorg)\n * [Thiago Silva](http://twitter.com/tafs7/)\n * [Guilherme Nagatomo](https://github.com/guilhermehn)\n\n***\n### License:\n\n__jQuery-maskMoney__ is released under the MIT license.\n","readmeFilename":"README.md","_id":"jquery-maskmoney@3.0.1","dist":{"shasum":"84b4d1e8b230b392a5e8606f897ed180f4d416e0","tarball":"https://registry.npmjs.org/jquery-maskmoney/-/jquery-maskmoney-3.0.1.tgz","integrity":"sha512-xo5UgVkTF2Bl0OzpAsgHxw+OLTtVBT93vyskXMfKZN4dK5Tt++kUgFWSW0tuLlKmXqsql9qIOfoMvbEYx451og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD34Q8V47Dj1y+jyWWnUiMgvCXYHNvFAxA4rSSez/DjyAIgDq3EE2A001J2I3dTISD/5eN0Q1nltI7tZO2ufr1MMII="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"plentz","email":"diego@plentz.org"},"maintainers":[{"name":"plentz","email":"diego@plentz.org"}],"directories":{}},"3.0.2":{"name":"jquery-maskmoney","filename":"jquery.maskMoney.min.js","description":"jQuery plugin to mask data entry in the input text in the form of money (currency)","version":"3.0.2","homepage":"https://github.com/plentz/jquery-maskmoney","repository":{"type":"git","url":"https://github.com/plentz/jquery-maskmoney.git"},"bugs":{"url":"https://github.com/plentz/jquery-maskmoney/issues"},"author":{"name":"Diego Plentz","email":"diego@plentz.org","url":"http://plentz.org"},"dependencies":{"jquery":">=1.6"},"npmName":"jquery-maskmoney","npmFileMap":[{"basePath":"/dist/","files":["jquery.maskMoney.min.js"]}],"devDependencies":{"amdefine":"latest","grunt":"latest","grunt-cli":"latest","grunt-contrib-concat":"latest","grunt-contrib-jshint":"latest","grunt-contrib-uglify":"latest","grunt-contrib-qunit":"latest","grunt-jquerymanifest":"latest","grunt-contrib-watch":"latest"},"licenses":[{"type":"MIT","url":"https://raw.github.com/plentz/jquery-maskmoney/master/LICENSE"}],"scripts":{"test":"grunt test --verbose"},"readme":"# jQuery maskMoney [![Build Status](https://travis-ci.org/plentz/jquery-maskmoney.png)](https://travis-ci.org/plentz/jquery-maskmoney)\n\nJust a simple way to create masks to your currency form fields with [jQuery](http://jquery.com/).\n\n***\n### Download\n\nTo get the latest(minified) version, [click here](https://raw.github.com/plentz/jquery-maskmoney/master/dist/jquery.maskMoney.min.js).\n\nYou can also use [CloudFlare's cdnjs](http://cdnjs.com/). Just choose the version you want to use [here](http://cdnjs.com/libraries/jquery-maskmoney/).\n\n***\n### Show Time!\n\nTo view a complete demonstration of it's features and usage, access our [examples page](http://plentz.github.com/jquery-maskmoney)!\n\n***\n### Usage:\n```html\n<head>\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\" type=\"text/javascript\"></script>\n  <script src=\"dist/jquery.maskMoney.min.js\" type=\"text/javascript\"></script>\n</head>\n<body>\n  <input type=\"text\" id=\"currency\" />\n</body>\n<script>\n  $(function() {\n    $('#currency').maskMoney();\n  })\n</script>\n```\n\n***\n### Options:\n\nThe options that you can set are:\n\n * `prefix`: the prefix to be displayed before(aha!) the value entered by the user(example: \"US$ 1234.23\"). default: ''\n * `suffix`: the prefix to be displayed after the value entered by the user(example: \"1234.23 €\"). default: ''\n * `affixesStay`: set if the prefix and suffix will stay in the field's value after the user exits the field. default: true\n * `thousands`: the thousands separator. default: ','\n * `decimal`: the decimal separator. default: '.'\n * `precision`: how many decimal places are allowed. default: 2\n * `allowZero`: use this setting to prevent users from inputing zero. default: false\n * `allowNegative`: use this setting to prevent users from inputing negative values. default: false\n\n__IMPORTANT__: if you try to bind maskMoney to a read only field, nothing will happen, since we ignore completely read only fields. So, if you have a read only field, try to bind maskMoney to it, it will not work. Even if you change the field removing the readonly property, you will need to re-bind maskMoney to make it work.\n\n***\n### Bonus!\n\nWe have 3 bonus methods that can be useful to you:\n\n * `.maskMoney('destroy')` removes maskMoney from an element.\n * `.maskMoney('mask')` apply the mask to your input. This method can work as a setter as well, if you pass a value to it, like this `.maskMoney('mask', 1999.99)`\n * `.maskMoney('unmasked')` return a float value (ex.: 'R$ 1.234,56' => 1234.56). PS: If you have only one input field, you should use this way `.maskMoney('unmasked')[0]`, since it will always return an array.\n\nYou can also configure maskMoney options using the data-* API instead of passing it as a hash in the `.maskMoney` method call. To use it, simply set the options using `data-<option>`, like this:\n\n ```html\n \t<input type=\"text\" data-symbol=\"R$ \" data-thousands=\".\" data-decimal=\",\" />\n ```\n\n And when you bind maskMoney to that field, we will read those options.\n\n***\n### Contributors:\n\n * [Aurélio Saraiva](mailto:aureliosaraiva@gmail.com)\n * [Raul Pereira da Silva](http://raulpereira.com)\n * [Diego Plentz](http://plentz.org)\n * [Otávio Ribeiro Medeiros](http://github.com/otaviomedeiros)\n * [Víctor Cruz](http://github.com/xtream)\n * [Synapse Studios](http://github.com/synapsestudios)\n * [Guilherme Garnier](http://blog.guilhermegarnier.com/)\n * [Plínio Balduino](http://github.com/pbalduino)\n * [Luis Fernando Gomes](https://github.com/luiscoms)\n * [Gary Moore](http://www.gmoore.net/)\n * [Daniel Loureiro](https://github.com/loureirorg)\n * [Thiago Silva](http://twitter.com/tafs7/)\n * [Guilherme Nagatomo](https://github.com/guilhermehn)\n\n***\n### License:\n\n__jQuery-maskMoney__ is released under the MIT license.\n","readmeFilename":"README.md","_id":"jquery-maskmoney@3.0.2","dist":{"shasum":"f18de4f06b8c66ad97cae8b320571c936ac637b7","tarball":"https://registry.npmjs.org/jquery-maskmoney/-/jquery-maskmoney-3.0.2.tgz","integrity":"sha512-tmhGSfx3QTwrYcZYgELsr8qgcvRcR72+p6D+YrZrlkUdVE6g9vuRLwbl4FuL5X84KBfWBtoX6k2HawYjv2WVag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTMH0w7jDNIEGp7RNeaHbMMULHVd8H/zDX2aXNNMMnkAIgcJX9IqiBTvDl8mxgtXRtBemz0kxBjHMp+DW7MTTHyrs="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"plentz","email":"diego@plentz.org"},"maintainers":[{"name":"plentz","email":"diego@plentz.org"}]}},"readme":"# jQuery maskMoney [![Build Status](https://travis-ci.org/plentz/jquery-maskmoney.png)](https://travis-ci.org/plentz/jquery-maskmoney)\n\nJust a simple way to create masks to your currency form fields with [jQuery](http://jquery.com/).\n\n***\n### Download\n\nTo get the latest(minified) version, [click here](https://raw.github.com/plentz/jquery-maskmoney/master/dist/jquery.maskMoney.min.js).\n\nYou can also use [CloudFlare's cdnjs](http://cdnjs.com/). Just choose the version you want to use [here](http://cdnjs.com/libraries/jquery-maskmoney/).\n\n***\n### Show Time!\n\nTo view a complete demonstration of it's features and usage, access our [examples page](http://plentz.github.com/jquery-maskmoney)!\n\n***\n### Usage:\n```html\n<head>\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\" type=\"text/javascript\"></script>\n  <script src=\"dist/jquery.maskMoney.min.js\" type=\"text/javascript\"></script>\n</head>\n<body>\n  <input type=\"text\" id=\"currency\" />\n</body>\n<script>\n  $(function() {\n    $('#currency').maskMoney();\n  })\n</script>\n```\n\n***\n### Options:\n\nThe options that you can set are:\n\n * `prefix`: the prefix to be displayed before(aha!) the value entered by the user(example: \"US$ 1234.23\"). default: ''\n * `suffix`: the prefix to be displayed after the value entered by the user(example: \"1234.23 €\"). default: ''\n * `affixesStay`: set if the prefix and suffix will stay in the field's value after the user exits the field. default: true\n * `thousands`: the thousands separator. default: ','\n * `decimal`: the decimal separator. default: '.'\n * `precision`: how many decimal places are allowed. default: 2\n * `allowZero`: use this setting to prevent users from inputing zero. default: false\n * `allowNegative`: use this setting to prevent users from inputing negative values. default: false\n\n__IMPORTANT__: if you try to bind maskMoney to a read only field, nothing will happen, since we ignore completely read only fields. So, if you have a read only field, try to bind maskMoney to it, it will not work. Even if you change the field removing the readonly property, you will need to re-bind maskMoney to make it work.\n\n***\n### Bonus!\n\nWe have 3 bonus methods that can be useful to you:\n\n * `.maskMoney('destroy')` removes maskMoney from an element.\n * `.maskMoney('mask')` apply the mask to your input. This method can work as a setter as well, if you pass a value to it, like this `.maskMoney('mask', 1999.99)`\n * `.maskMoney('unmasked')` return a float value (ex.: 'R$ 1.234,56' => 1234.56). PS: If you have only one input field, you should use this way `.maskMoney('unmasked')[0]`, since it will always return an array.\n\nYou can also configure maskMoney options using the data-* API instead of passing it as a hash in the `.maskMoney` method call. To use it, simply set the options using `data-<option>`, like this:\n\n ```html\n \t<input type=\"text\" data-symbol=\"R$ \" data-thousands=\".\" data-decimal=\",\" />\n ```\n\n And when you bind maskMoney to that field, we will read those options.\n\n***\n### Contributors:\n\n * [Aurélio Saraiva](mailto:aureliosaraiva@gmail.com)\n * [Raul Pereira da Silva](http://raulpereira.com)\n * [Diego Plentz](http://plentz.org)\n * [Otávio Ribeiro Medeiros](http://github.com/otaviomedeiros)\n * [Víctor Cruz](http://github.com/xtream)\n * [Synapse Studios](http://github.com/synapsestudios)\n * [Guilherme Garnier](http://blog.guilhermegarnier.com/)\n * [Plínio Balduino](http://github.com/pbalduino)\n * [Luis Fernando Gomes](https://github.com/luiscoms)\n * [Gary Moore](http://www.gmoore.net/)\n * [Daniel Loureiro](https://github.com/loureirorg)\n * [Thiago Silva](http://twitter.com/tafs7/)\n * [Guilherme Nagatomo](https://github.com/guilhermehn)\n\n***\n### License:\n\n__jQuery-maskMoney__ is released under the MIT license.\n","maintainers":[{"name":"plentz","email":"diego@plentz.org"}],"time":{"modified":"2022-06-19T05:07:00.373Z","created":"2013-12-31T15:51:51.670Z","3.0.0":"2013-12-31T15:51:51.670Z","3.0.1":"2014-01-18T01:18:08.819Z","3.0.2":"2014-01-18T01:39:17.182Z"},"users":{"vrfrnco":true,"filipve":true,"jeandrebosch":true,"olonam":true}}