UNPKG

@piyawasin/byte-flags

Version:

A lightweight, type-safe utility library for efficiently storing and managing boolean flags in compact numeric values (8, 16, or 32 bits). Perfect for permission systems, feature flags, status tracking, and any scenario requiring compact boolean storage w

60 lines (59 loc) 1.58 kB
{ "name": "@piyawasin/byte-flags", "version": "2.0.0", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/types/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "types": "./dist/types/index.d.ts" } }, "scripts": { "build:esm": "tsc --project tsconfig.json", "build:cjs": "tsc --project tsconfig.cjs.json", "build": "npm run build:esm && npm run build:cjs", "clean": "rm -rf dist", "test": "jest" }, "keywords": [ "flags", "boolean-flags", "bit-flags", "bitmask", "typescript", "utility", "memory-optimization", "feature-flags", "permissions", "bitwise", "efficient-storage", "typescript-library", "byte-flags", "short-flags", "long-flags", "16-bit", "32-bit", "compact-storage", "serialization" ], "repository": { "type": "git", "url": "https://github.com/ppikrorngarn/byte-flags.git" }, "author": "Piyawasin Pikror-ngarn", "license": "MIT", "files": [ "dist", "README.md" ], "description": "A lightweight, type-safe utility library for efficiently storing and managing boolean flags in compact numeric values (8, 16, or 32 bits). Perfect for permission systems, feature flags, status tracking, and any scenario requiring compact boolean storage with zero dependencies and full TypeScript support.", "devDependencies": { "@types/jest": "^29.5.14", "jest": "^29.7.0", "ts-jest": "^29.3.4", "typescript": "^5.8.3" } }