Skip to content

sharvit/node-mdl-starter

Repository files navigation

node-mdl-starter

Generated by generator-node-mdl

Package Version semantic-release Downloads Status Build Status: Linux Coverage Status PRs Welcome dependencies Status devDependencies Status code style: prettier MIT License

Why

// TODO

Installation

npm install --save node-mdl-starter

Usage

const nodeMdlStarter = require('node-mdl-starter');

nodeMdlStarter('some text');
//=> some text

Usage

import nodeMdlStarter, { isEven, isOdd } from 'node-mdl-starter';

nodeMdlStarter('some text');
//=> some text

isEven(8);
//=> true
isEven(9);
//=> false
isOdd(8);
//=> false
isOdd(9);
//=> true

If you are not able to use es-modules, you can use require instead of import

const { default: nodeMdlStarter, isEven, isOdd } = require('node-mdl-starter');

To use it directly inside a browser, load it via a script tag:

<script type="text/javascript" src="./node_modules/node-mdl-starter/dist/index.js"></script>
<script type="text/javascript">
  const { default: nodeMdlStarter, isEven, isOdd } = window['node-mdl-starter'];
</script>

Related

// TODO

License

MIT © Avi