env.js 207 B

1234567891011
  1. "use strict";
  2. import {readFileSync} from "fs"
  3. export class Config {
  4. constructor(file) {
  5. const raw = readFileSync(file);
  6. const it = JSON.parse(raw);
  7. this.port = it.port;
  8. }
  9. }