JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2734
  • Score
    100M100P100Q117249F
  • License MIT

next level chaining.

Package Exports

  • chain-able
  • chain-able/ChainedSet
  • chain-able/TraverseChain
  • chain-able/deps/dot-prop
  • chain-able/deps/to-arr
  • chain-able/src

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chain-able) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

⛓ chain-able

NPM version docs fliphub BuildStatus fluent

gzip size

interfaces that describe their intentions

🗣 expressive

traditional

class Traditional {
  constructor() {
    this.data = {}
  }
  build(index, name, object) {
    this.data.index = index
    this.data.name = name
    this.data.object = object
  }
}
const classico = new Traditional()
classico.build(1, 'string', {object: true})

fluent

class Chain extends Chainable {
  constructor(parent) {
    super(parent)
    this.extend(['index', 'name', 'object'])
  }
}
const chain = new Chainable()
  .index(1)
  .name('string')
  .object(true)

🏰 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