@profiscience/knockout-contrib-observable-fn

Knockout JS Observable Functions

Usage no npm install needed!

<script type="module">
  import profiscienceKnockoutContribObservableFn from 'https://cdn.skypack.dev/@profiscience/knockout-contrib-observable-fn';
</script>

README

@profiscience/knockout-contrib-observable-fn

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

This is a metapackage including all @profiscience/knockout-contrib-observable-fn-* packages

Extends the observable prototype. See Adding custom functions using "fn"

Contents

Usage

Importing a function will add it to the prototype of all subsequently created observables.

You may import a single function, or all of them.

// import all
import '@profiscience/knockout-contrib-observable-fn'

// import single
import '@profiscience/knockout-contrib-observable-fn/increment'