@zombiec0rn/zombie-service-scale
Zombie Service (format) scaler
Last updated 4 years ago by asbjornenge .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zombiec0rn/zombie-service-scale 
SYNC missed versions from official npm registry.

Zombie Service Scale

Scale up and down zombies with a scale property.

Install

npm install --save @zombiec0rn/zombie-service-scale

Use

var scale = require('@zomebic0rn/zombie-service-scale')
var up = scale.up({
    id    : 'app',
    image : 'org/app',
    scale : 3
})
console.log(up)
// =>
// [
//    {
//        id    : 'app',
//        image : 'org/app',
//        scale : 3
//    },
//    {
//        id    : 'app-scale-1',
//        image : 'org/app'
//    },
//    {
//        id    : 'app-scale-2',
//        image : 'org/app'
//    }
// ]

var down = scale.down(up)
console.log(down)
// =>
// [
//    {
//        id    : 'app',
//        image : 'org/app',
//        scale : 3
//    }
// ]

Changelog

1.0.0

  • Initial release :tada:

enjoy.

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |