@mark-solutions/number-format-input

1.1.8 • Public • Published

number-format-input

  • Hello, this package will help you to make your input as amount.
  • For example if you enter 15000 it will be shown as 15,000

usage

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/@mark-solutions/number-format-input@1.1.7/dist/number-format.bundle.js"></script>
</head>
<body>
    <input type="text" id="test" />
</body>
<script>
    numberFormat.wrap("test");
</script>
</html>

note

  • input type must be text

Package Sidebar

Install

npm i @mark-solutions/number-format-input

Weekly Downloads

0

Version

1.1.8

License

ISC

Unpacked Size

3.11 kB

Total Files

4

Last publish

Collaborators

  • mark-solutions