UNPKG

ssh-switch

Version:

A lightweight CLI tool to manage and switch between multiple SSH configurations easily.

18 lines (14 loc) 251 B
// os const os = require('os'); // path const path = require('path'); // db const DB = require('qiao-config'); /** * getDB * @returns */ exports.getDB = () => { const dbPath = path.resolve(os.homedir(), './sshs.json'); return DB(dbPath); };