mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
1.5 KiB
1.5 KiB
#{DESC}#
Home - Documentation - Chat
Install / Import
> npm install --save #{REPO_NAME}#
import { myFunction, myObject } from '#{REPO_NAME}#';
Specific imports:
import { myFunction } from '#{REPO_NAME}#/myFunction';
import { myObject } from '#{REPO_NAME}#/myObject';
Import from HTML, with CDN
Import it via a bundle that creates a global ( wider browser support ):
<script src="//unpkg.com/#{REPO_NAME}#/bundle.min.js"></script>
<script>
const { myFunction, myObject } = #{REPO_NAME}#;
</script>
Or import it as an ES module:
<script type="module">
import { myFunction, myObject } from '//unpkg.com/#{REPO_NAME}#/zz_esm/index.js';
</script>
You can specify the version you wish to import: unpkg.com
Contribute
npm install
npm run build
npm test