ts-ci/README.template.md
Joseph Garrone 3da058ab74 update
2020-05-16 07:21:56 +02:00

1.4 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 = #{REPO_NAME_NO_DASHES}#.myFunction;
</script>

Or import as an ES module:

<script type="module">
  import { myFunction, myObject } from '//unpkg.com/#{REPO_NAME}#/zz_esm/index.js';
</script>

Contribute

npm install
npm run build
npm test