1.0.2 • Published 1 year ago

@azu/tsconfig-to-dual-package-example v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 in index.mjs

import { sum } from "@azu/tsconfig-to-dual-package-example"
console.log(sum(1,2,3,4,5)) // => 15

Use it in 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

1.0.2

1 year ago

1.0.1

1 year ago