`bare-utils` is a JavaScript utility library designed to provide Node.js-compatible functions primarily for the Bare runtime, a specialized environment often used within the Holepunch and Hypercore ecosystems. It offers a subset of commonly used functionalities akin to Node.js's built-in `util` module, ensuring that developers can leverage familiar utility patterns when building applications for Bare. The library's current stable version is 1.6.0. Its release cadence is typically aligned with the development cycle of the Bare runtime itself, focusing on maintaining API parity and addressing specific needs of the ecosystem. A key differentiator is its explicit compatibility and optimization for the Bare environment, making it a targeted tool rather than a general-purpose utility library for standard Node.js projects.
npm install bare-utilsVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use the `format` utility function with various specifiers.
For ESM, use `import util from 'bare-utils'` and then access functions like `util.format()`.
Consult the `bare-utils` source or documentation for exact API coverage. For critical functions, consider implementing polyfills or alternative solutions if `bare-utils` does not provide the exact behavior required.
If in an ESM file, change `const util = require('bare-utils')` to `import util from 'bare-utils'`. Ensure your `package.json` has `"type": "module"` for ESM files or use the `.mjs` extension.Adjust the import statement in your ESM or bundled code to `import util from 'bare-utils'`, then access the function as `util.format(...)`.
No dependency data recorded yet.