Skip to content

azu/tsconfig-to-dual-package-example

Repository files navigation

tsconfig-to-dual-package-example

An example for tsconfig-to-dual-package.

Install

Install with npm:

npm install @azu/tsconfig-to-dual-package-example

Usage

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

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu