apeman-scrt

3.0.3 • Public • Published

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
Key Description Default
password Password of secret.
configuration Pathname of Apemanfile

License

This software is released under the MIT License.

Links

Dependencies (11)

Dev Dependencies (10)

Package Sidebar

Install

npm i apeman-scrt

Weekly Downloads

0

Version

3.0.3

License

MIT

Last publish

Collaborators

  • okunishinishi