Super light and fizzy data binding
npm install prosecco-jsProsecco JS is a library that provides super light (and super fizzy 🥂) data binding – and just that. It is intentionally kept as minimal as possible. All you can do is:
- bind certain values in the DOM to primitive variables
- hide and show elements based on variable values
- define DOM loops that reflect the current state of an Array
- execute functions whenever a primitive or an Array changes.
That said, it's the perfect choice if you want that and _only_ that. So let's see if this is for you!
- Install Prosecco
- Quickstart
- Documentation
- Prosecco's constructor
- Binding to primitive values: ps-bind
- Conditional rules: ps-if
- Iterating over arrays: ps-each
- Watching value changes: Prosecco.watch()
Install the latest version via npm
``bash`
$ npm install prosecco-js
and import it in your JavaScript:
`js`
import Prosecco from 'prosecco-js';
For development purposes, include the following script in the
of your HTML:`html