@ts-npm-examples/basic-module

An example of a basic TypeScript NPM module.

Usage no npm install needed!

<script type="module">
  import tsNpmExamplesBasicModule from 'https://cdn.skypack.dev/@ts-npm-examples/basic-module';
</script>

README

Basic module

A simple module that is set up for compiling, testing and publishing on NPM.

Clone

  1. Clone with git clone git@github.com:ts-npm-examples/basic-module.git
  2. Populate node_modules with yarn
  3. Test with yarn test
  4. Build with yarn build

Use as module

Install this module using yarn add @ts-npm-examples/basic-module or npm i @ts-nmp-examples/basic-module. You can use the module in both JavaScript and TypeScript projects.