uuid-parse is a JavaScript utility for converting RFC4122 UUID strings to Node.js Buffer objects (or Array/Buffer targets) and vice-versa. It provides `parse` and `unparse` functions for this specific transformation. The current stable version is 1.1.0, and the package is explicitly marked as no longer maintained. Its primary differentiator was providing parsing/unparsing functionality that was removed from a prior version of the `node-uuid` library, which is now maintained as `uuid`. Developers should be aware that this module will not receive updates for bugs, security vulnerabilities, or new features, and alternatives like the `uuid` package's `parse` and `stringify` functions are generally recommended for active projects. It does not have a release cadence due to its abandoned status.
npm install uuid-parseVerified import paths — ran on the pinned version, not inferred.
Demonstrates parsing a UUID string into a Buffer and unparsing a Buffer back into a string, including usage with offsets and target buffers.
Replace `uuid-parse` with `@lukeed/uuid` (lightweight) or `uuid` (feature-rich). Example: `uuid.parse()` and `uuid.stringify()` for `uuid` package.
Ensure your project uses CommonJS if you must use this package, or transpile your code. The recommended fix is to migrate to an ESM-compatible UUID library.
Test thoroughly in your target environment. For browser usage, ensure a `Buffer` polyfill is in place. For Node.js, consider migrating to avoid potential future incompatibilities.
Access the methods as `uuidParse.parse(...)` or `uuidParse.unparse(...)`.
Switch to `require` syntax or, preferably, migrate to a modern, actively maintained UUID library that supports ES Modules, such as `uuid`.
Use a bundler (like Webpack or Rollup) that automatically provides a Buffer polyfill for browser compatibility, or manually include a Buffer polyfill. Alternatively, switch to a UUID library designed for universal (Node.js and browser) usage.
No dependency data recorded yet.