0.0.1 • Published 2 years ago

@bondsports/read-package v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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';