Gathering detailed insights and metrics for @webassemblyjs/floating-point-hex-parser
Gathering detailed insights and metrics for @webassemblyjs/floating-point-hex-parser
Gathering detailed insights and metrics for @webassemblyjs/floating-point-hex-parser
Gathering detailed insights and metrics for @webassemblyjs/floating-point-hex-parser
npm install @webassemblyjs/floating-point-hex-parser
Typescript
Module System
Node Version
NPM Version
100
Supply Chain
73.9
Quality
79.8
Maintenance
100
Vulnerability
100
License
JavaScript (99.38%)
Makefile (0.21%)
WebAssembly (0.2%)
Shell (0.16%)
C (0.04%)
CSS (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
815 Stars
2,152 Commits
94 Forks
10 Watchers
22 Branches
36 Contributors
Updated on Jul 10, 2025
Latest Version
1.14.1
Package Id
@webassemblyjs/floating-point-hex-parser@1.14.1
Unpacked Size
6.22 kB
Size
2.48 kB
File Count
5
NPM Version
lerna/5.1.6/node@v21.7.1+x64 (linux)
Node Version
21.7.1
Published on
Nov 06, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
A JavaScript function to parse floating point hexadecimals as defined by the WebAssembly specification.
1import parseHexFloat from '@webassemblyjs/floating-point-hex-parser' 2 3parseHexFloat('0x1p-1') // 0.5 4parseHexFloat('0x1.921fb54442d18p+2') // 6.283185307179586
This module is tested in two ways. The first one is through a small set of test cases that can be found in test/regular.test.js. The second one is non-deterministic (sometimes called fuzzing):
x
.y
in floating point hexadecimal format using the C standard library function printf
since C supports this format.parseHexFloat(y) === x
.By default one npm test
run tests 100 random samples. If you want to do more, you can set the environment variable FUZZ_AMOUNT
to whatever number of runs you'd like. Because it uses one child process for each sample, it is really slow though. For more details about the randomized tests see the source.
No vulnerabilities found.
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 5/20 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
binaries present in source code
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
71 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More