Naughty Programmer's Madness
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    cellespublic

    celles

    Small FRP library.

    Usage

    celles = require "celles"
     
    = celles.cell 1
    = celles.cell 2
     
    console.log a.value # 1 
    console.log b.value # 2 
     
    = celles.formula [ab](a, b) ->
      a + b
     
    console.log c.value # 3 
     
    a.set 2
     
    console.log c.value # 4 
     
    = celles.template
      propA: a
      propB: b
      propC: c
     
    console.log d.value # { propA: 2, propB: 2, propC: 4 } 
     
    b.set 3
     
    console.log d.value # { propA: 2, propB: 3, propC: 5 } 

    Schedule

    • 0.2 - recursive template
    • 0.3 - integration with callbacks and promises
    • 0.4 - integration with streams

    Keywords

    none

    install

    npm i celles

    Downloadsweekly downloads

    0

    version

    0.3.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar