New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

number-finder

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

number-finder

Return all possible combinations of numbers from string

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Demo and Docs

  • Click here for live demo

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

Keywords

FAQs

Package last updated on 02 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc