chain-objects
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

chain-objects

cascading objects

PRs Welcome

Getting Started

Install the package by running:

<npm | yarn | pnpm> install chain-objects

Then use it:

const chain = require('chain-objects').chain({ a: 1 }, { b: 2 })

Features

  • access adjacent sibling properties
    • via kSuper (Symbol.for('chain-objects/super')): { get a() { return this[kSuper].a } }

API

Supported Node.js versions

This project aims to support all supported Node.js LTS versions (see LTS README for more details) as well as the latest stable Node.js.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the ISC License - see the LICENSE file for details.

Contributing & Development

Please note that this project is released with a Code of Conduct. By participating in this project you agree to abide by its terms.

And please do participate!

For a quick start see the contributing guide

Authors

  • Sascha Tandel - Initial work - sastan

See also the list of contributors who participated in this project.

Acknowledgments

Package Sidebar

Install

npm i chain-objects

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

211 kB

Total Files

12

Last publish

Collaborators

  • sastan