npm-number-parser
Module that parse all types of number from a string, returns an array of numbers. Inspired from this post
Installation
$ npm install --save npm-number-parser
Usage
var parseNumbers = ; var numbers = ;console;//=> [12, 32, 3.5, 2] numbers = ;console;//=> [] //trows error if input it's not a string, see testsnumbers = ;//=> TypeError: Input data is not a string
Usage with callback
var parseNumbers = ; ; ; //other type of data that is not a string ;