Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Latest commit

 

History

History
36 lines (24 loc) · 750 Bytes

guide.md

File metadata and controls

36 lines (24 loc) · 750 Bytes

MQL Guide

Installation

Embed as script

<script src="https://unpkg.com/@web-native-js/mql/dist/main.js"></script>

<script>
// The above tag loads Mql into a global "WebNative" object.
const Mql = window.WebNative.Mql;
</script>

Install via npm

$ npm i -g npm
$ npm i --save @web-native-js/mql

Import

Mql is written in and distributed as standard JavaScript modules, and is thus imported only with the import keyword.

Mql works both in browser and server environments.

// Node-style import
import Mql from '@web-native-js/mql';

// Standard JavaScript import. (Actual path depends on where you installed Mql to.)
import Mql from './node_modules/@web-native-js/mql/src/index.js';