UNPKG

hextreme

Version:

Encode/decode hex and base64 at speed

53 lines (52 loc) 1.72 kB
{ "name": "hextreme", "version": "1.0.7", "description": "Encode/decode hex and base64 at speed", "exports": { "require": "./index.js", "import": "./index.mjs" }, "files": [ "index.js", "index.d.ts", "index.mjs", "index.d.mts" ], "scripts": { "_bundleCJS": "esbuild src/index.ts --outdir=. --bundle --line-limit=130 --platform=neutral --target=es6 --format=cjs", "_bundleESM": "esbuild src/index.ts --outdir=. --bundle --line-limit=130 --platform=neutral --target=es6 --format=esm --out-extension:.js=.mjs", "_makeTypes": "dts-bundle-generator -o index.d.ts src/index.ts && cp index.d.ts index.d.mts", "build": "tsc --noEmit && npm run _makeTypes && npm run _bundleESM && npm run _bundleCJS", "_perfNode": "esbuild perfCli.ts --bundle --platform=node --target=es2015 --format=esm | node", "_perfBun": "bun run perfCli.ts", "perfCli": "npm run build && echo '\n== Node ==\n' && npm run _perfNode && echo '\n== Bun ==\n' && npm run _perfBun", "perfBrowser": "esbuild perf.ts --bundle --platform=browser --target=es2015 --format=iife --outfile=browser-perf/perf.js && open browser-perf/index.html", "test": "npm run build && bun run test.ts" }, "keywords": [ "hex", "toHex", "fromHex", "base64", "toBase64", "fromBase64", "Uint8Array", "encode", "decode", "performance", "speed" ], "author": "George MacKerron", "license": "MIT", "devDependencies": { "@types/node": "^22.10.1", "buffer": "^6.0.3", "dts-bundle-generator": "^9.5.1", "esbuild": "^0.24.0", "typescript": "^5.7.2" }, "repository": { "type": "git", "url": "https://github.com/jawj/hextreme" } }