To install the package and make it available in a node.js project, simply install it with npm
npm install --save topic-carousel
Once it has been installed, it can easily be imported in your project, depending on the import method you need.
// Common js module
const { TopicCarousel } = require('topic-carousel');
// ESM module
import { TopicCarousel } from 'topic-carousel';
It is generally better practice (for security reasons) to copy the library to your own web server and serve it yourself, but for prototyping (or laziness) you can load it directly in the html file with the script tag.
<script
src="https://unpkg.com/topic-carousel@0.0.1/dist/bundle/topic-carousel.min.js"
type="application/javascript"
async
></script>
// TODO
Generated using TypeDoc