Embed as script

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

Install via npm

$ npm i -g npm
$ npm i --save @onephrase/mql


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 '@onephrase/mql';
// Standard JavaScript import. (Actual path depends on where you installed Mql to.)
import Mql from './node_modules/@onephrase/mql/src/index.js';