cccf-scale

2.0.0 • Public • Published

cccf-scale

This module can scale up and down a cccf config with a scale property.

Install

npm install cccf-scale

Use

var cs = require('cccf-scale')
var up = cs.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 = cs.down(up)
console.log(down)
// =>
// [
//    {
//        id    : 'app',
//        image : 'org/app',
//        scale : 3
//    }
// ]

Changelog

2.0.0

  • Using cccf v3.0.0

1.0.0

  • Initial release 🎉

enjoy.

Readme

Keywords

Package Sidebar

Install

npm i cccf-scale

Weekly Downloads

1

Version

2.0.0

License

BSD

Last publish

Collaborators

  • asbjornenge