Skip to content

zombiec0rn/zombie-service-scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 🎉

enjoy.

About

Zombie Service (format) scaler

Resources

Stars

Watchers

Forks

Packages

No packages published