sports-util
TypeScript icon, indicating that this package has built-in type declarations

1.0.31 • Public • Published

Sports Utils

A helper library that contains the sports functions, hardcoded data and its constants.

-It's writen in typescript so we can typecheck the data coming from the API. We then build the exported functions and transpile typescript into javascript in the folder dist. Any configuration of next generation module(for now we use ES6), can be found on the tsconfig.json.

Getting started

Install dependencies

run yarn

Tests

run yarn test

Workspace structure

├── README.md
├── dist
├── src
│   ├── constants
│   ├── helpers
│   ├── services
│   └── types
│   └── index.ts
├── package.json
└── yarn.lock

Publish new version

First run yarn build to build the dist, and commit it. Then if no error occurs, run:

$ yarn npm:patch
$ yarn npm:publish

If an error occurs, try running npm publish directly.

Package Sidebar

Install

npm i sports-util

Weekly Downloads

5

Version

1.0.31

License

ISC

Unpacked Size

528 kB

Total Files

90

Last publish

Collaborators

  • gigmedia