node-mdl-starter
v1.7.1
Published
Generated by generator-node-mdl
Downloads
2
Readme
node-mdl-starter
Generated by generator-node-mdl
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