A simple credential management solution.
keep
works as a CLI to make it easy to launch. In order to install it just run
npm i -g @jsmrcaga/keep
You should now have access to the CLI.
keep start [--config ./config.json] [--port 1234]
Note that if no config is specified,
./config.json
will be used as a default
You can also use it via its API:
const keep = require('@jsmrcaga/keep');
keep.start({ port: 1234 }, configFile).then(() => {
// do something
}).catch(e => {
// handle the error
});
Please note that when using as an API
keep
will not register global error handling. When launched via the CLI it will viaprocess.on('unhandledRejection')
andprocess.on('uncaughtError')
.
@jsmrcaga/mongo
. You should be able to launch it just by specifiying your config via the API or the cli.Example:
Note that under
db
all properties will be forwarded to@jsmrcaga/mongo
{
"db": {
"username": "",
"password": "",
"port": 23456
}
}