UNPKG

@toolbuilder/ring-buffer

Version:

Replace your slow Array based fixed length ring buffer, or circular queue, with ring-buffer. RingBuffer is roughly 10x faster, and is a drop in replacement.

70 lines (69 loc) 2.06 kB
{ "name": "@toolbuilder/ring-buffer", "version": "1.2.3", "description": "Replace your slow Array based fixed length ring buffer, or circular queue, with ring-buffer. RingBuffer is roughly 10x faster, and is a drop in replacement.", "keywords": [ "ring buffer", "circular queue", "buffer", "iterable", "ES2015", "module", "bundles" ], "homepage": "https://github.com/toolbuilder/ring-buffer#readme", "bugs": { "url": "https://github.com/toolbuilder/ring-buffer/issues" }, "repository": { "type": "git", "url": "https://github.com/toolbuilder/ring-buffer.git" }, "license": "MIT", "type": "module", "types": "./src/ringbuffer.d.ts", "exports": { "require": "./cjs/ringbuffer.js", "types": "./src/ringbuffer.d.ts", "default": "./src/ringbuffer.js" }, "main": "cjs/ringbuffer.js", "module": "src/ringbuffer.js", "files": [ "cjs", "src" ], "scripts": { "build": "run-s build:*", "build:cjs": "rollup -c rollup.config.cjs.js", "build:types": "tsc", "check": "run-s build check:*", "check:packagejson": "npmPkgJsonLint .", "check:packfile": "rollup -c rollup.config.test.js", "check:performance": "node test/ringbuffer_perf.js", "check:src": "standard src test", "check:test": "run-s test", "check:uncommitted": "uncommitted", "prerelease": "run-s check", "release": "commit-and-tag-version", "test": "pta --reporter tap \"test/**/*test.js\"" }, "devDependencies": { "@toolbuilder/list": "^1.2.4", "@toolbuilder/package-json-lint-config": "^0.1.1", "@toolbuilder/ring-buffer-tests": "^0.1.4", "@toolbuilder/rollup-plugin-test-tools": "^1.1.0", "commit-and-tag-version": "^12.5.0", "npm-package-json-lint": "^8.0.0", "npm-run-all2": "^7.0.1", "pta": "1.2.0", "rollup": "^4.24.4", "standard": "^17.1.2", "typescript": "^5.6.3", "uncommitted": "^1.0.0", "zora": "5.0.3" }, "npmpackagejsonlint": { "extends": "@toolbuilder/package-json-lint-config" } }