get-client-info
v1.0.3
Published
`dist/index.js` is a browser-side **UMD module**. It exposes a function `getClientInfo()`, which takes no arguments, and returns synchronously. ### Usage
Readme
get-client-info
dist/index.js is a browser-side UMD module. It exposes a function getClientInfo(), which takes no arguments, and returns synchronously.
Usage
1) <script> (browser global)
<script src="./dist/index.js"></script>
<script>
const str = window.getClientInfo()
</script>- Global name:
window.getClientInfo
2) CommonJS
const getClientInfo = require('./dist/index.js')
const str = getClientInfo()3) AMD
define(['./dist/index.js'], function (getClientInfo) {
const str = getClientInfo()
})