Installation

It is available as npm package
npm install @microlink/mql --save
MQL has been designed to be consumed from different ways.
Probably the most used is from Node.js using CommonJS
const mql = require('@microlink/mql')
You can consume it from ESM as well
import mql from 'microlink/mql'
Also, you can bundle it to be used in a browser environment or load it using UMD
<script src="https://cdn.jsdelivr.net/npm/@microlink/[email protected]/dist/mql.min.js"></script>
In that case the UMD doesn't include Fetch dependency.
Although it's widely supported, we recommend use polyfill.io CDN for that purpose, it will only load polyfill if fetch is not globally detected.
<script>
  crossorigin="anonymous" 
  src="https://polyfill.io/v3/polyfill.min.js?features=fetch">
</script>
Some extra and no elemental features are not availables on the browser environment bundle to keep it small and lightweight as possible.

Installation

It is available as npm package
npm install @microlink/mql --save
MQL has been designed to be consumed from different ways.
Probably the most used is from Node.js using CommonJS
const mql = require('@microlink/mql')
You can consume it from ESM as well
import mql from 'microlink/mql'
Also, you can bundle it to be used in a browser environment or load it using UMD
<script src="https://cdn.jsdelivr.net/npm/@microlink/[email protected]/dist/mql.min.js"></script>
In that case the UMD doesn't include Fetch dependency.
Although it's widely supported, we recommend use polyfill.io CDN for that purpose, it will only load polyfill if fetch is not globally detected.
<script>
  crossorigin="anonymous" 
  src="https://polyfill.io/v3/polyfill.min.js?features=fetch">
</script>
Some extra and no elemental features are not availables on the browser environment bundle to keep it small and lightweight as possible.