Skip to content

TechnologyGeek12/number-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Number Finder

Licence

npm Version

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.

Usage

First, install the package using npm:

npm install number-finder --save

Then, require the package and use it like so:

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

OR

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

About

Return all possible combinations of numbers from string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published