1.1.1 • Published 5 years ago

number-finder v1.1.1

Weekly downloads
13
License
MIT
Repository
github
Last release
5 years ago

Number Finder

A Node.js package that check and extract all the available numbers in from the given string. And return all the possible different combinations and format for the numbers containing in input string. A basis number finder npm package.

Demo and Docs

Installation

The package can be installed via NPM:

npm install number-finder --save

yarn add number-finder

number-finder can be imported as follows

var numberfinder = require('number-finder');

OR

import numberfinder from 'number-finder';

Example

   import numberfinder from 'number-finder';

   console.log(numberfinder("this3545is4235number-finder43789example")); 
   
   
   Result:-

   numberTypeArray: [3545, 4235, 43789]

   numberTypeNumberArray: [3, 5, 4, 5, 4, 2, 3, 5, 4, 3, 7, 8, 9]

   numberTypeNumberSet: 3545423543789

   stringTypeArray: ["3545", "4235", "43789"]

   stringTypeNumberArray: ["3", "5", "4", "5", "4", "2", "3", "5", "4", "3", "7", "8", "9"]

   stringTypeNumberSet: "3545423543789"

License

MIT

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago