UNPKG

@forwardslashns/fws-cli

Version:

CLI meant to work together with other Forwardslash boilerplates.

10 lines (9 loc) 230 B
import { readFileSync } from 'fs'; export const getPackageJson = (path) => { try { const packageJson = JSON.parse(readFileSync(path, 'utf-8')); return packageJson; } catch (e) { return {}; } };