apg-conv-api is a JavaScript library that provided an API for converting integer arrays to encoded byte streams (Node.js Buffers) and vice versa. It also exposed low-level transformation functions for encoding and decoding, and was bundled for use in both Node.js and browser environments. The package is officially deprecated as of version 1.0.1, with its functionality superseded by `apg-js`. Developers are strongly advised to migrate to `apg-js` for ongoing support and new features. The package's release cadence was tied to its companion `apg-conv` library, but is now effectively halted due to its deprecated status. Its key differentiator was providing direct programmatic access to the `apg-conv` core conversion logic for various data types.
npm install apg-conv-apiVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use `apg-conv-api` to encode an array of integer code points into a Node.js Buffer and then decode it back using UTF8 encoding.
Replace `apg-conv-api` with `apg-js`. Refer to the `apg-js` documentation and `apg-js-examples` for updated usage patterns.
For Node.js, continue using `require()`. For modern applications requiring ESM, migrate to `apg-js` which offers ESM compatibility.
Migrate to the actively maintained `apg-js` package to ensure ongoing compatibility and receive critical updates.
Ensure `const apgConv = require('apg-conv-api');` is at the top of your Node.js file, or that the script tag for `apg-conv-api.js` is included in your HTML before calling `apgConv` in a browser.This package is CommonJS-only. If you are in an ES Module environment, you must either use a dynamic `import()` or, preferably, migrate to the `apg-js` package which offers ES Module support.