ringbuf.js
Version:
Wait-free thread-safe single-consumer single-producer ring buffer using SharedArrayBuffer.
57 lines (56 loc) • 1.3 kB
JSON
{
"name": "ringbuf.js",
"version": "0.4.0",
"description": "Wait-free thread-safe single-consumer single-producer ring buffer using SharedArrayBuffer.",
"author": "Paul Adenot <padenot@mozilla.com>",
"license": "MPL-2.0",
"repository": "padenot/ringbuf.js",
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"sideEffects": false,
"engines": {
"node": ">=18",
"npm": ">=9"
},
"keywords": [
"ring buffer",
"shared array buffer",
"thread-safe",
"single-consumer",
"single-producer",
"wait-free",
"garbage collector"
],
"scripts": {
"build": "pkgroll --sourcemap",
"postbuild": "cp dist/index.js public/example/",
"lint": "eslint src server.mjs"
},
"devDependencies": {
"@types/node": "^22.10.7",
"@eslint/js": "^9.18.0",
"eslint": "^9.18.0",
"pkgroll": "^2.6.1",
"prettier": "^3",
"typedoc": "^0.27.6",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0",
"uvu": "^0.5.2"
},
"files": [
"dist"
]
}