https://project.mdnd-it.cc/work_packages/94
This commit is contained in:
2025-08-23 04:25:28 +02:00
parent 725516ad6c
commit 19cfa031d0
25823 changed files with 1095587 additions and 2801760 deletions
-2
View File
@@ -22,8 +22,6 @@
npm install ieee754
```
[Get supported ieee754 with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-ieee754?utm_source=npm-ieee754&utm_medium=referral&utm_campaign=readme)
## methods
`var ieee754 = require('ieee754')`
+10
View File
@@ -0,0 +1,10 @@
declare namespace ieee754 {
export function read(
buffer: Uint8Array, offset: number, isLE: boolean, mLen: number,
nBytes: number): number;
export function write(
buffer: Uint8Array, value: number, offset: number, isLE: boolean,
mLen: number, nBytes: number): void;
}
export = ieee754;
+1
View File
@@ -1,3 +1,4 @@
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m
var eLen = (nBytes * 8) - mLen - 1
+20 -5
View File
@@ -1,19 +1,19 @@
{
"name": "ieee754",
"description": "Read/write IEEE754 floating point numbers from/to a Buffer or array-like object",
"version": "1.1.13",
"version": "1.2.1",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
"url": "http://feross.org"
"url": "https://feross.org"
},
"contributors": [
"Romain Beauxis <toots@rastageeks.org>"
],
"devDependencies": {
"airtap": "0.1.0",
"airtap": "^3.0.0",
"standard": "*",
"tape": "^4.0.0"
"tape": "^5.0.1"
},
"keywords": [
"IEEE 754",
@@ -24,6 +24,7 @@
],
"license": "BSD-3-Clause",
"main": "index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/feross/ieee754.git"
@@ -33,5 +34,19 @@
"test-browser": "airtap -- test/*.js",
"test-browser-local": "airtap --local -- test/*.js",
"test-node": "tape test/*.js"
}
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
}