Licence
ISC
Version
0.0.1
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Bond Sports read package
An encpsulation for reading package json of a server
Installation
$ npm install --save-dev eslint @bondsports/read-package
or
$ yarn add --dev eslint @bondsports/read-package
Usage
Add the configs you want to the extend section of your eslintConfig of your package.json, or to your .eslintrc configuration file.
Note: make sure to add ts-base last.
import { readPackageJsonSync } from '@bondsports/read-package';
export const SERVICE_NAME = readPackageJsonSync().name ?? 'unknown_service';