Your library description and a gif or image might be good below
Use npm
Run command npm i your-library
import { yourLibFunction } from 'your-library';
const lib = require("your-library");
console.log(lib.yourLibFunction(1, 2);
Add <script src="https://unpkg.com/your-library/dist/your-library.umd.js"></script>
to your HTML file.
Then you can call API functions like lib.yourLibFunction(1, 2)
npm run build
to generate production build distribution files.npm run dev
to generate build files as you developnpm run test
to run unit tests
- returns sum of 2 numbers