@brazilian-utils/helper-only-numbers
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.1 • Public • Published

@brazilian-utils/helper-only-numbers

Strips all non numeric characters.

See our website http://brazilian-utils.github.io for more information or the issues associated with this package.

Install

Using NPM:

npm install @brazilian-utils/helper-only-numbers --save

using Yarn

yarn add @brazilian-utils/helper-only-numbers

or using <script> tag

<script
  type="text/javascript"
  src="https://unpkg.com/@brazilian-utils/helper-only-numbers/dist/helper-only-numbers.umd.production.js"
></script>

Usage

onlyNumbers('527.328.336-12'); // 52732833612
onlyNumbers('123abc456?.#789xyz 0'); // 1234567890

Readme

Keywords

none

Package Sidebar

Install

npm i @brazilian-utils/helper-only-numbers

Weekly Downloads

5,050

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

5.79 kB

Total Files

12

Last publish

Collaborators

  • andreoav
  • hyanmandian
  • lucassveloso