@fizzwiz/fluent v0.0.0-dev.1
@fizzwiz/fluent
Mirror the natural flow of thought in your code.
@fizzwiz/fluent is a modern JavaScript library designed to bring elegant syntactic sugar to your code. It simplifies the expression of complex logic and promotes intuitive, readable, and concise development ā with zero learning curve.
⨠Features
- š§ Thoughtful API ā Code reads like natural language.
- š§© Modular Structure ā Organized into logical packages.
- š Dual Environment Support ā Use in Node.js or directly in the browser.
- š Zero Learning Curve ā Intuitive by design.
š¦ Package Structure
The library is organized into four main packages:
| Package | Description |
|---|---|
core | Base abstractions: defines Each and What |
each | Classes that extend the Each concept |
what | Classes that extend the What concept |
util | Utility functions and general-purpose helpers |
Each package corresponds to a directory, and each file within defines a single class.
š ļø Usage
ā Node.js (ES Modules)
Install via npm:
npm install @fizzwiz/fluentThen use:
import { Each } from '@fizzwiz/fluent/core/Each.js';
const each = Each.of('a', 'b');ā Browser (via CDN)
Include the bundle in your HTML:
<script src="https://cdn.jsdelivr.net/gh/fizzwiz/fluent@latest/dist/fluent.bundle.js"></script>
<script>
const each = fluent.Each.of('a', 'b');
</script>This will expose a global fluent object with access to all features.
š Documentation
Full API docs and usage examples: š https://fizzwiz.github.io/fluent
š Blog & Tutorials
Explore concepts, tutorials, and deep dives: š https://fluent-js.blogspot.com
6 months ago