mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
1.3 KiB
1.3 KiB
#{DESC}#
Home - Documentation - Chat
Install / Import
> npm install --save #{REPO_NAME}#
import { myFunction, myObject } from '#{REPO_NAME}#';
Specific import
import { myFunction } from '#{REPO_NAME}#/myFunction'
import { myObject } from '#{REPO_NAME}#/myObject'
From HTML with CDN
Expose a global ( wider browser support):
<script src="//unpkg.com/#{REPO_NAME}#/umd_bundle.min.js"></script>
<script>
var { myFunction, myObject } = window['#{REPO_NAME}#'];
</script>
Or import as an ES module:
<script type="module" src="//unpkg.com/#{REPO_NAME}#/zz_esm/index.js"></script>
<script>
import { myFunction, myObject } from '#{REPO_NAME}#';
</script>