0.1.3 • Published 7 years ago

boxbox v0.1.3

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
7 years ago

node travis-ci

Node.js BoxBox

Micromodule

Example

npm i boxbox

const
  boxbox = require('boxbox')

let box = new boxbox()

box.add('plus', (a, b) => a+b)
box.add('sum', (...x) => x.reduce(box.box['plus'], 0))

console.log(box.box['sum'](1, 2, 3))
const
  box = require('boxbox')()

box.add('initDemo', { init: () => {
    let x = boxbox('x', (x) => x*x)
    return (a, b) => Math.sqrt(x.x(a)+x.x(b))
  }})

console.log(box['initDemo'](3, 4))
const
  boxbox = require('boxbox')

let x = boxbox()

x.add('script', 'fold/script.js', 'utf8')
x.add('interval', () => {
    setInterval(box.restart, 7777, 'script')
  })

x.box['interval']()

BoxBox Server

npm i boxbox.server

const
  boxbox = require('boxbox.server')

let box = boxbox('boxName', {
  post: (req, res) => {
    res.end('ok')
  }
})
.server('serverName')
  
0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago