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