Initial Release
This is the first release of Sloth Pipe, v0.0.3. Sloth Pipe is a TypeScript and JavaScript library made to drastically simplify the way developers handle data transformation and processing. It borrows from functional programming principles, this library brings lazy evaluation, chainable APIs, and a host of other features to streamline your coding experience.
🌟 What to Expect in v0.0.3
- Lazy Evaluation: Ensures computations are executed only when needed, boosting performance and efficiency.
- Chainable API: Facilitates elegant, readable code by allowing multiple operations to be linked together.
- Error Handling: Integrates error management directly within your data pipeline.
- Async/Await Support: Harmonizes asynchronous functions within your pipes for a seamless experience.
- Tap Operations: Enables side-effects while maintaining the integrity of the main data flow.
- Reusable Pipes: Reuse your pipes effortlessly, maintaining consistency across your application.
- Extensibility: Customize Sloth Pipe with your own functions and operations.
- Type Safety: Built in TypeScript, ensuring robust type checking and inference.
- Lightweight & Dependency-Free: A minimal footprint with maximal functionality.
- Comprehensive Testing: Reliable performance backed by 100% code coverage.
📦 Installation
Getting started with Sloth Pipe is straightforward:
With Bun:
bun i sloth-pipe
Or with npm:
npm install sloth-pipe
🚀 Quick Start Guide
Here's a snippet to get you started:
import { Pipe } from "sloth-pipe";
const result = Pipe(5)
.to((x) => x * 2)
.to((x) => x + 3)
.exec();
console.log(result); // Outputs: 13
Async and Error Handling
Sloth Pipe elegantly integrates asynchronous operations and provides robust error handling mechanisms.
📚 Detailed Documentation
For an in-depth look at all the features and functionalities, check out the API documentation.
🤝 Contributing to Sloth Pipe
Your contributions can help Sloth Pipe grow! Feel free to submit issues or pull requests on GitHub. Check out the contributing guidelines for more information.
📄 License
Sloth Pipe is open-source and available under the MIT License.
Thanks for checking out Sloth Pipe! If you have any questions, feel free to reach out to me.
— trav - author of Sloth Pipe
Full Changelog: https://github.com/trvswgnr/sloth-pipe/commits/v0.0.3