The 'e' library is a modern, universal utility collection specifically designed for TypeScript and Node.js environments. Currently at version 0.2.33, it emphasizes immutability, ensuring that none of its functions mutate or alter any passed arguments, promoting predictable side-effect-free code. Its design philosophy centers on simplicity, with each exported function serving a single, clear purpose. While currently in an early 0.x.x release cycle, it aims to provide a reliable, lightweight alternative to larger utility libraries, focusing on a clean API and strong TypeScript support from the ground up. The library is actively developed and geared towards contemporary JavaScript development practices.
npm install eVerified import paths — ran on the pinned version, not inferred.
Demonstrates core functionalities like asynchronous delays, random number generation, and array shuffling, emphasizing the library's non-mutating design philosophy.
Pin to exact versions in your `package.json` (e.g., `"e": "0.2.33"` instead of `"^0.2.33"`) and manually update after reviewing release notes.
Always assign the return value of 'e' functions to a new variable or explicitly reassign it to the original variable if mutation is desired (though not recommended for 'e' patterns). For example: `const newArr = shuffleArr(oldArr);`
Ensure your project uses `import` statements and is configured for ESM. If you must use CommonJS, consider a transpilation step or a tool like `cjstoesm` if available, or check for dual-packaging support in future versions.
Change `const { symbol } = require('e');` to `import { symbol } from 'e';`. Ensure your `package.json` has `"type": "module"` if you are in an ESM project, or use a build tool to transpile.Verify the symbol name against the 'e' documentation or source code. Ensure it is a named export, as 'e' does not use default exports. For example, use `import { correctFunctionName } from 'e';`.Always ensure arguments passed to 'e' functions are of the expected type. Also, remember that 'e' functions are immutable; always capture their return value: `const newArray = shuffleArr(myArray);`
No dependency data recorded yet.