npm.io
1.3.3 • Published 4 years ago

@use-services/echo

Licence
MIT
Version
1.3.3
Deps
1
Size
2 kB
Vulns
0
Weekly
0
Stars
1

Echo

// in services.ts
import * as Echo from "@use-services/echo";

import * as settings from "@/settings";

const options = {
  settings: {
    init: Echo.init,
    args: settings,
  } as Echo.Option<typeof settings>,
};

// in settings.ts
const settings = {
  app: "app",
  host: "0.0.0.0",
  port: 3000,
  prod: false,

};

export = settings;

// usage
srvs.settings.app

Keywords