0.0.1 • Published 11 months ago
nv-random-numlike-str v0.0.1
nv-random-numlike-str
- test tool
- it will random generate some really "LONG" number-like-strings, some of them are "WRONG" number-like-literal, most of them are correct-number-like-literal
- it is USED for test IF your runtime-behavior is SAME as standard JS.
install
- npm install nv-random-numlike-str
usage
const x = require("nv-random-numlike-str");
example
> x._any()
'0b110100011101100011101101_001011110111110_10110101111101_100101001011100000111111011111n'
> x._any()
'NaN'
> x._any()
'-18756839159907789939921_0959476413429083746317290_61'
> x._any()
'-1399_0071708056_41.150887712741267081'
> x._any()
'-124817941'
> x._any()
'134331_14896_42531.153080122902850491'
> x.many_any(10)
[
'+193082046605205833347683061474585670589776_020674_628616199099789166370944660244227516_65881322042613631256240586071459962136804893380734313074444829814084252509708084_188848902330585928333119883684336281090044072320484424488400640241_41',
'0o1776312404612171214734047266305404420734__3355454346366321242656313325_1662360723160343551132041637412707341010367700706344047_62002502610276611331267023135344_65754371131751n',
'-0o17325272010_203_4350664504032523350_230075473727232_6713661506532_464036501470503464_4120133_411306041',
'114480645952159237188026867061801711774060981372704887990459317588913698591551517_3542396534361',
'1642393189764832_1.113816874630_84221',
'102_42018650622791.10733791_984069041',
'+1881655371_18_8471.1031703659232_7341',
'1504_7545787416611.1_0600307020627421',
'-143_14335138750441.1533687741__077461',
'0b1111_10010_01_1111_0100111001001100001101000010000100011011001111100000010101110001000000010001101'
]
METHODS
APIS
{
_0b: [Function: _0b],
_0b_bi: [Function: _0b_bi],
many_0b: [Function: many_0b],
many_0b_bi: [Function: many_0b_bi],
////-------------------------------------------4 radix only for nvlang
_0q: [Function: _0q],
_0q_bi: [Function: _0q_bi],
many_0q: [Function: many_0q],
many_0q_bi: [Function: many_0q_bi],
////-------------------------------------------------------------------
_0o: [Function: _0o],
_0o_bi: [Function: _0o_bi],
many_0o: [Function: many_0o],
many_0o_bi: [Function: many_0o_bi],
_0x: [Function: _0x],
_0x_bi: [Function: _0x_bi],
many_0x: [Function: many_0x],
many_0x_bi: [Function: many_0x_bi],
_ten: [Function: _ten],
_ten_bi: [Function: _ten_bi],
many_ten: [Function: many_ten],
many_ten_bi: [Function: many_ten_bi],
_double: [Function: _double],
many_double: [Function: many_double],
_any: [Function: _any],
many_any: [Function: many_any]
}
LICENSE
- ISC
0.0.1
11 months ago