5.0.0 ā¢ Published 7 years ago
foop v5.0.0
ā chain-able
interfaces that describe their intentions
ā chain-able now has a website! š chain-able.js.org
š¦ install
yarn add chain-able
npm i chain-able --save
cdn
- dev
<script src="https://unpkg.com/chain-able@beta/dists/dev/index.js"></script>
- min
<script src="https://unpkg.com/chain-able@beta/dists/umd/index.js"></script>
š° benefits
writing an api using chain-able means:
- write 1 api
- get 3 apis as a result!
- š persistable, rehydratable, & transferrable configurations
- ā fluent/chainable api
- š¦ vanilla object syntax
š features
- expressive, clearly communicative code
- runtime type validation
- š¬ 300+ tests with 96%+ code coverage
- ā” performant & tiny
~8kb
(gzip) 300 byte minimal version available as snippet
- š api
- š iteratable
- š£ expressive
- š¾ makes solving complex problems simple
- š seamless native integration
- š¼ compose & decorate
- š types, schemas, validation
- š method builder
- š infinitely nestable understandable factories
- ā¶ļøāļø easy deep merging
- ā®ļø compatibility - typescript, nodejs, webpack, rollup, fusebox, babel, buble, amd
š related
- šā awesome fluents
- many thanks to Eli Perelman for all the chainable goodness
- thanks to James Halliday for the tremendous traversals
- thanks to Sindre Sorhus for the simple dot-prop access
- thanks to Josh Duff for deep merging
- based on webpack-chain, but not webpack-specific.
- thanks to Jon Schlinkert & inferno for type checking inspirations
- transpiled with buble
- Martin Fowler on FluentInterface
- ramda & lodash for some well tested & documented utilities (currying, mapping)
5.0.0
7 years ago