@bondsports/read-package
v0.0.1
Published
This is template for map colonies typescript packages
Downloads
4
Maintainers
Keywords
Readme
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';