This is an example of npm package that can be used as ECMAScript Module
(via import
) and CommonJS library (via require
). This npm package is
written in TypeScript programming languages.
See complete tutorial: How to create ECMAScript and CommonJS library with TypeScript.