package
Common utilities for products from Peculiar Ventures
npm install pvutilsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
18.2 kB
Includes dependencies.
pvutils is a set of common utility functions used in various Peculiar Ventures Javascript based projects.
Some example capabilities included in pvutils include:
npm install pvutilsv2 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.
^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."module": "node20" or "nodenext" (TypeScript 5.9+). With "module": "node16" the compiler reports TS1479."module": "preserve", "moduleResolution": "bundler") work without changes."moduleResolution": "node" (node10) resolves the package through types; pvutils has no subpath exports, so nothing else changes.pvutils to the transformIgnorePatterns exceptions, or switch to Vitest.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.The public API is unchanged; only packaging and runtime requirements changed.
See CONTRIBUTING.md for development setup, commit conventions and the release flow.
microshine
microshine@mail.ru