mirror of
https://github.com/expo/node-vault.git
synced 2026-11-27 16:45:28 -10:00
10 lines
210 B
JavaScript
10 lines
210 B
JavaScript
// file: example/status.js
|
|
|
|
process.env.DEBUG = 'node-vault'; // switch on debug mode
|
|
|
|
const vault = require('./../src/index')();
|
|
|
|
vault.status()
|
|
.then(console.log)
|
|
.catch((err) => console.error(err.message));
|