@jimjardland/nhl

Breaking out some code from my NHL graphql api from earlier.

Usage no npm install needed!

<script type="module">
  import jimjardlandNhl from 'https://cdn.skypack.dev/@jimjardland/nhl';
</script>

README

Breaking out some code from my NHL graphql api from earlier.

Making it an npm package, mainly for building Pokechecked in React Native

Installating

  npm i @jimjardland/nhl

Usage

const { getHighlights } = require('@jimjardland/nhl')

const highlights = await getHighlights()

Building

  git clone https://github.com/Jimjardland/nhl

Change to nhl directory:

   cd nhl

Install dev dependencies

  npm i

Use one of the following to build and test

  npm start             # Builds and and runs dist/lib/index.js
  npm run test          # Run unit tests
  npm run build         # builds