Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyk/typescript-esm-cjs
Tutorial on how to create ESM and CJS library with one TypeScript codebase
https://github.com/pyk/typescript-esm-cjs
cjs commonjs ecmascript esm
Last synced: about 2 months ago
JSON representation
Tutorial on how to create ESM and CJS library with one TypeScript codebase
- Host: GitHub
- URL: https://github.com/pyk/typescript-esm-cjs
- Owner: pyk
- Created: 2022-10-02T12:01:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T12:03:26.000Z (over 2 years ago)
- Last Synced: 2024-11-27T17:56:51.506Z (2 months ago)
- Topics: cjs, commonjs, ecmascript, esm
- Language: TypeScript
- Homepage: https://pyk.sh/tutorials/how-to-create-ecmascript-and-commonjs-library-with-typescript/
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an example of npm package that can be used as [ECMAScript][2] Module
(via `import`) and [CommonJS][3] library (via `require`). This npm package is
written in [TypeScript programming languages][4].See complete tutorial: [How to create ECMAScript and CommonJS library with
TypeScript][1].[1]:
https://pyk.sh/tutorials/how-to-create-ecmascript-and-commonjs-library-with-typescript/
[2]: https://pyk.sh/questions/what-is-ecmascript-es/
[3]: https://pyk.sh/questions/what-is-commonjs-cjs/
[4]: https://pyk.sh/questions/what-is-typescript/