UNPKG

bixby-cli

Version:

A CLI for bixby capsule development

19 lines (16 loc) 471 B
import Configstore from "configstore"; import { Package } from "../structs/Package"; export class ConfigService { private config: any; private pkg: Package; constructor() { this.pkg = new Package(); this.config = new Configstore(this.pkg.name); } public get(key: string): any { return this.config.get(key); } public set(key: string, value: any) { return this.config.set(key, value); } }