nl_tokens: Parses the specified size string into a byte value . For example 10kb becomes 10240 .
pl_tokens: function parseSizeStr ( size ) { if ( typeof ( size ) !== 'string' ) { return size ; } var muls = { t : 1099511627776 , g : 1073741824 , m : 1048576 , k : 1024 } , mul ; size = / ^([0-9\.]+)([tmgk]?)$ / . exec ( size . toLowerCase ( ) . replace ( / [^0-9\.tmkg] / g , '' ) ) ; mul = size [ 2 ] ; size = + <mask> [ 1 ] ; if ( muls . hasOwnProperty ( mul ) ) { size *= muls [ mul ] ; } return Math . floor ( size ) ; }