tunnelmole
Version:
Tunnelmole, an open source ngrok alternative. Instant public URLs for any http/https based application. Available as a command line application or as an NPM dependency for your code. Stable and maintained. Good test coverage. Works behind firewalls
16 lines • 483 B
JavaScript
import { initStorage, storage } from "../node-persist/storage.js";
const API_KEY = 'apiKey';
const getApiKey = async () => {
const apiKey = storage.getItem(API_KEY) || undefined;
return apiKey;
};
const setApiKey = async (apiKey) => {
if (!storage) {
initStorage();
}
storage.setItem(API_KEY, apiKey);
console.info("API Key " + apiKey + " is set\n");
process.exit(0);
};
export { getApiKey, setApiKey };
//# sourceMappingURL=api-key-service.js.map