An example for tsconfig-to-dual-package.
Install with npm:
npm install @azu/tsconfig-to-dual-package-example
- Distribution files: https://www.npmjs.com/package/@azu/tsconfig-to-dual-package-example?activeTab=explore
Use it from index.mjs
import { sum } from "@azu/tsconfig-to-dual-package-example"
console.log(sum(1,2,3,4,5)) // => 15
Use it from index.cjs
const { sum } = require("@azu/tsconfig-to-dual-package-example");
console.log(sum(1,2,3,4,5)) // => 15
Use it from browser
const { sum } = await import("https://unpkg.com/@azu/tsconfig-to-dual-package-example@1.0.1/module/index.js?module");
console.log(sum(1,2,3,4,5)) // => 15
See Releases page.
Install devDependencies and Run npm test
:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu