Compose promise-returning and async functions into reusable pipelines for sequential execution.
p-pipe is a JavaScript utility library that composes promise-returning and async functions into reusable pipelines. It solves the problem of chaining asynchronous operations in a clean, modular way by allowing developers to combine multiple functions that execute sequentially from left to right.
JavaScript and Node.js developers who work with asynchronous code and need to create reusable sequences of promise-based operations.
Developers choose p-pipe for its simplicity, focused functionality, and seamless integration with async/await patterns, providing a cleaner alternative to manual promise chaining or nested callbacks.
Compose promise-returning & async functions into a reusable pipeline
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The API is a single function that composes inputs left-to-right, demonstrated in the README with a straightforward example using async functions.
Works with both promise-returning and async functions, integrating naturally with modern JavaScript async/await syntax for clean code.
Allows creating composed functions that can be reused across different inputs, promoting modular and maintainable asynchronous workflows.
Focuses on doing one thing well—async function composition—without bloat, adhering to the project's stated philosophy of small, composable utilities.
p-pipe does not provide mechanisms for error catching or recovery within the pipeline, requiring developers to handle failures externally, which can add complexity.
Functions are applied strictly from left to right with no support for parallel execution, making it inefficient for independent async operations that could run concurrently.
The README is minimal and lacks examples for advanced use cases, such as error handling or integration with other libraries, leaving developers to figure things out on their own.