StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/parse-unit
Angelos Chatzimparmpas e069030893 fix the frontend 3 years ago
..
.npmignore fix the frontend 3 years ago
LICENSE.md fix the frontend 3 years ago
README.md fix the frontend 3 years ago
index.js fix the frontend 3 years ago
package.json fix the frontend 3 years ago

README.md

parse-unit

stable

Parses a number and unit string, eg "20px" into [20, "px"].

var unit = require('parse-unit')

//prints [50, "gold"]
console.log( unit("50 gold") ) 

Usage

NPM

parse(str[, out])

Parses the string and its unit, returning an array containing the number and unit, separated.

"-20 foo" => [-20, "foo"]
"5.5%" => [5.5, "%"]
5 => [5, ""]
"5" => [5, ""]

This will create a new array unless you specify an array to out, which allows you to re-use arrays.

License

MIT, see LICENSE.md for details.