{"_id":"pvutils@2.0.0","bugs":{"url":"https://github.com/PeculiarVentures/pvutils/issues"},"dist":{"shasum":"5aec6dafde1c94a782c5d97ca10a0ec6a0d99cea","tarball":"http://registry-npm.ywwl.com/pvutils/download/pvutils-2.0.0.tgz","fileCount":5,"integrity":"sha512-P3ixz04x0cPN2Y243fy6mtGmfToGwfQbrrI5I3AxsCWzxEgmNNHreS1XXu10LhGGU3IvUA45AhGBrRJ8sh8iNg==","signatures":[{"sig":"MEUCIEKOtzC/Y78gqhISakm1PvenaaJpc0o1yX9pQ/FmkwHDAiEAjIwDpbcoxVb7itkpJm++Jbh35GbuVL8/HLaJWSJd7yk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGrQnlrSzzQuu7nWo6JF6prcnis8bxLStKUV2gIn5Or6AiEAiwJDLO98HAQHDV5mB4/SOBWbWVLBEb33OkyKva2PF2w="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/pvutils@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18655,"size":6197,"noattachment":false,"key":"/pvutils/-/pvutils-2.0.0.tgz"},"main":"./build/index.js","name":"pvutils","type":"module","types":"./build/index.d.ts","author":{"name":"Yury Strozhevsky","email":"yury@strozhevsky.com"},"module":"./build/index.js","engines":{"node":"^20.19.0 || >=22.12.0"},"exports":{".":"./build/index.js","./package.json":"./package.json"},"gitHead":"239a220d6dcede5047c4cf36c1bd1636bca2bf69","license":"MIT","scripts":{"lint":"oxlint","test":"vitest run","build":"tsdown","format":"oxfmt","prepack":"npm run build","coverage":"vitest run --coverage","lint:fix":"oxlint --fix","typecheck":"tsc --noEmit","format:check":"oxfmt --check"},"version":"2.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"f55e0c6a-577b-4f9b-a8f9-f093c7e8026d"}},"homepage":"https://github.com/PeculiarVentures/pvutils#readme","devEngines":{"packageManager":{"name":"npm","onFail":"error","version":">=10"}},"repository":{"url":"git+https://github.com/PeculiarVentures/pvutils.git","type":"git"},"_npmVersion":"11.19.0","description":"Common utilities for products from Peculiar Ventures","directories":{},"maintainers":[{"name":"peculiarventures","email":"info@peculiarventures.com"},{"name":"microshine","email":"microshine@mail.ru"}],"sideEffects":false,"_nodeVersion":"24.21.0","contributors":[{"name":"Ryan Hurst","email":"rmh@unmitigatedrisk.com"},{"name":"Miroshin Stepan","email":"microshine@mail.ru"}],"_hasShrinkwrap":false,"devDependencies":{"oxfmt":"^0.73.0","oxlint":"^1.88.0","tsdown":"^0.23.1","vitest":"^5.0.4","typescript":"^6.0.3","@vitest/coverage-v8":"^5.0.4","@arethetypeswrong/core":"^0.18.5"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pvutils_2.0.0_1792073296929_0.5848476853973275"},"readme":"<h1 align=\"center\">\n  pvutils\n</h1>\n\n<div align=\"center\">\n\n![NPM License](https://img.shields.io/npm/l/pvutils)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/PeculiarVentures/pvutils/publish.yml?branch=master&label=publish)\n[![npm version](https://img.shields.io/npm/v/pvutils.svg)](https://www.npmjs.com/package/pvutils)\n![Coveralls](https://img.shields.io/coverallsCoverage/github/PeculiarVentures/pvutils)\n[![npm downloads](https://img.shields.io/npm/dm/pvutils.svg)](https://www.npmjs.com/package/pvutils)\n\n</div>\n\n`pvutils` is a set of common utility functions used in various Peculiar Ventures Javascript based projects.\n\nSome example capabilities included in `pvutils` include:\n\n- Converting dates into UTC,\n- Converting an \"ArrayBuffer\" into a hexdecimal string,\n- Converting a number from 2^base to 2^10,\n- Converting a number from 2^10 to 2^base,\n- Concatenate two ArrayBuffers,\n- And more...\n\n## Install\n\n```bash\nnpm install pvutils\n```\n\n## Breaking Changes In v2\n\nv2 ships ESM only. The CommonJS build is removed: v1 published `build/utils.js` (CommonJS) and `build/utils.es.js` (ESM); v2 publishes a single ES module, `build/index.js`, with `build/index.d.ts`, behind an `exports` map.\n\n- **Node.js `^20.19.0 || >=22.12.0` is required** (previously `>=16`). These versions support `require()` of ES modules, so CommonJS code can keep using `require(\"pvutils\")` without changes. Node.js 22.0–22.11 is not supported: it can't `require()` ESM.\n- **TypeScript projects that compile to CommonJS** need `\"module\": \"node20\"` or `\"nodenext\"` (TypeScript 5.9+). With `\"module\": \"node16\"` the compiler reports TS1479.\n- **ESM and bundler setups** (`\"module\": \"preserve\"`, `\"moduleResolution\": \"bundler\"`) work without changes.\n- **Legacy `\"moduleResolution\": \"node\"` (node10)** resolves the package through `types`; pvutils has no subpath exports, so nothing else changes.\n- **Jest in CommonJS mode** can't load ESM packages. Use Jest's ESM mode, add `pvutils` to the `transformIgnorePatterns` exceptions, or switch to Vitest.\n- **Deep imports are blocked.** The `exports` map allows only `pvutils` and `pvutils/package.json`. Imports of `pvutils/build/utils.js` or `pvutils/build/utils.es.js` must change to `pvutils`.\n\nThe public API is unchanged; only packaging and runtime requirements changed.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, commit conventions and the release flow.\n","publish_time":1792073297038,"_cnpm_publish_time":1792073297038,"dist-tags":{"latest":"2.0.0"}}