A dead simple functional utility belt with 137+ one-liner functions, each following strict functional programming principles.
1-liners is a functional utility library for JavaScript that provides over 137 simple, single-line functions designed for clarity and reliability. It solves the problem of complex utility libraries by offering minimal, pure functions that follow strict functional programming principles, making code more predictable and easier to reason about.
JavaScript developers who practice functional programming and need lightweight, composable utilities without the overhead of larger libraries. It's ideal for those who value immutability, pure functions, and modular code.
Developers choose 1-liners for its simplicity, strict adherence to functional principles, and micro-module structure that allows for minimal bundle sizes. Its one-line functions are thoroughly tested and documented, providing a reliable alternative to bulkier utility libraries.
Functional tools that couldn’t be simpler.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Every function fits in a single readable line, allowing developers to instantly understand the implementation by glancing at the source, as emphasized in the decalogue.
Functions are side-effect-free and immutable, ensuring predictable behavior and easier debugging, which is core to the library's philosophy.
Data-last argument ordering facilitates currying and function composition, making it ideal for building functional pipelines, as stated in the rules.
Micro-module structure enables importing only the functions needed, minimizing bundle impact, since each utility is in a separate module.
With only 137 functions, it may not cover all use cases, such as asynchronous operations or specialized data structures, compared to more extensive libraries.
The project is explicitly marked as 'unstable' in the badges, indicating potential breaking changes and less reliability for production environments.
While modular, importing numerous functions individually might increase module resolution time if not properly optimized by modern bundlers, despite the micro-module design.