UNPKG

simple-object-pool

Version:

Super lightweight implementation of factory-based object pool.\ There is no error handling if the same object is released into the pool to keep it fast.

51 lines (50 loc) 1.3 kB
{ "name": "simple-object-pool", "version": "1.0.5", "type": "module", "exports": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.cts", "default": "./dist/index.cjs" } }, "files": [ "/dist" ], "types": "./dist/index.d.ts", "scripts": { "build:cjs": "tsc --module commonjs && chmod +x ./scripts/cjs.sh && ./scripts/cjs.sh", "build:esm": "tsc", "build": "rm -rf dist && npm run build:cjs && npm run build:esm", "test": "jest", "prepublishOnly": "npm run test && npm run build" }, "license": "MIT", "devDependencies": { "@types/jest": "^29.5.13", "@types/node": "^22.7.7", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "^5.6.3" }, "keywords": [ "typescript", "object-pool", "object", "pool" ], "author": { "name": "Eugene Shumilin", "email": "neirea@ukr.net", "url": "https://neirea.com" }, "repository": { "type": "git", "url": "https://github.com/Neirea/simple-object-pool.git" } }