3.0.3 • Published 10 years ago

apeman-scrt v3.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

apeman-scrt

Build Status Code Climate Code Coverage npm Version JS Standard

Secret manager for apeman.

Installation

Install apeman-scrt module via npm.

$ npm install apeman-scrt -g

Usage

  1. Prepare an Apemanfile.js at your project root.
  2. Run the command via CLI.

Apemanfile.js

/** Example of Apemanfile.js */

'use strict'

module.exports = {
  $cwd: __dirname,
  $pkg: { /* ... */ },
  $proto: [ /* ... */ ],
  $tmpls: { /* ... */ },
  $tasks: { /* ... */ },
  $apps: { /* ... */ },
  $wtchs: { /* ... */ },
  $infra: { /* ... */ },
  // Secret json file path.
  $scrt: './secret.json'
}

Then,

$ apeman-scrt MYSQL_ROOT_PASSWORD
CLI Options
$ apeman-scrt -h

  Usage: apeman-scrt [options] [name...] 

  Encrypt/decrypt secret file.

  Options:

    -h, --help                           output usage information
    -V, --version                        output the version number
    -p, --password <password>            Password of secret.
    -c, --configuration <configuration>  Pathname of Apemanfile

  Examples:

    $ apeman-scrt                     # Update secret file.

Programmatic API

apeman-scrt also provide programmatic API.

Firstly, install the module locally.

$ npm install apeman-scrt --save-dev

Then,

'use strict'

const apemanScrt = require('apeman-scrt')

apemanScrt({

}).then(() => {
    /* ... */
})
Programmatic Options
KeyDescriptionDefault
passwordPassword of secret.
configurationPathname of Apemanfile

License

This software is released under the MIT License.

Links

3.0.3

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago