@unsync/ai-tools
TypeScript icon, indicating that this package has built-in type declarations

0.0.23 • Public • Published

TypeScript npm Package Template

A template for developing a npm package that supports multiple module formats (CommonJS, ES Modules and UMD).

File Structure

src/ # Source files written in TypeScript
  - moduleA.ts
  - moduleB.ts
  - index.ts
lib/ # CommonJS format (`module.exports/require`) JS files
  - moduleA.js
  - moduleB.js
  - index.js
esm/ # ES Modules format (`import/export`) JS files
  - moduleA.js
  - moduleB.js
  - index.js
umd/ # UMD format, bundled JS file
  - my-typescript-package.js

How to Develop

$ npm install
$ npm run build # generates `lib`, `esm`, and `umd`

Readme

Keywords

none

Package Sidebar

Install

npm i @unsync/ai-tools

Weekly Downloads

1

Version

0.0.23

License

MIT

Unpacked Size

45.8 kB

Total Files

26

Last publish

Collaborators

  • unsync