webassembly-floating-point-hex-parser
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "webassembly-floating-point-hex-parser", | ||
"bugs": "https://github.com/maurobringolf/webassembly-floating-point-hex-parser/issues", | ||
"contributors": [ "maurobringolf" ], | ||
"contributors": [ | ||
"maurobringolf" | ||
], | ||
"engines": { | ||
"node": "*" | ||
"node": "*" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/maurobringolf/webassembly-floating-point-hex-parser.git" | ||
"type": "git", | ||
"url": "https://github.com/maurobringolf/webassembly-floating-point-hex-parser.git" | ||
}, | ||
"homepage": "https://github.com/maurobringolf/webassembly-floating-point-hex-parser", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/maurobringolf/webassembly-floating-point-hex-parser", | ||
"version": "0.1.1", | ||
"description": "A function to parse floating point hexadecimal strings as defined by the WebAssembly specification", | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel src -d lib", | ||
"prepublishOnly": "npm run build", | ||
"watch": "jest --watch *.js", | ||
"test": "jest" | ||
"test": "jest", | ||
"postbuild": "NODE_ENV=PRODUCTION jest" | ||
}, | ||
@@ -28,4 +33,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-minify": "^0.2.0", | ||
"jest": "^22.0.4" | ||
} | ||
} |
# Parser function for floating point hexadecimals | ||
[![CircleCI](https://img.shields.io/circleci/project/github/maurobringolf/webassembly-floating-point-hex-parser/master.svg)]() | ||
[![Github file size](https://img.shields.io/github/size/maurobringolf/webassembly-floating-point-hex-parser/index.js.svg)]() | ||
[![Github file size](https://img.shields.io/github/size/maurobringolf/webassembly-floating-point-hex-parser/lib/index.js.svg)]() | ||
[![license](https://img.shields.io/github/license/maurobringolf/webassembly-floating-point-hex-parser.svg)]() | ||
[![GitHub last commit](https://img.shields.io/github/last-commit/maurobringolf/webassembly-floating-point-hex-parser.svg)]() | ||
[![npm](https://img.shields.io/npm/v/webassembly-floating-point-hex-parser.svg)]() | ||
@@ -18,1 +19,9 @@ A JavaScript function to parse floating point hexadecimals as defined by the [WebAssembly specification](https://webassembly.github.io/spec/core/text/values.html#text-hexfloat). | ||
``` | ||
## Links | ||
* [maurobringolf.ch/2017/12/hexadecimal-floating-point-notation/](https://maurobringolf.ch/2017/12/hexadecimal-floating-point-notation/) | ||
* [github.com/xtuc/js-webassembly-interpreter/issues/32](https://github.com/xtuc/js-webassembly-interpreter/issues/32) | ||
* [github.com/WebAssembly/design/issues/292](https://github.com/WebAssembly/design/issues/292) |
@@ -1,2 +0,2 @@ | ||
const parse = require('../index'); | ||
const parse = require( process.env.NODE_ENV === 'PRODUCTION' ? '../src/' : '../lib/' ); | ||
@@ -3,0 +3,0 @@ test('Positive values should be parsed correctly', () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8617
8
27
4
2