Template for npm TypeScript module
First, install the library in your project by npm:
npm install package-typescript-npm-starter
Or Yarn:
yarn add package-typescript-npm-starter
Connect libary to project using ES6 import:
import sum from 'package-typescript-npm-starter';
Or CommonJS:
const sum = require('package-typescript-npm-starter');
Next use library:
const result = sum(2, 3); // 5
Type | Description |
---|---|
number | First number |
number | Second number |
This project is licensed under the MIT License © 2021-present Jakub Biesiada