my-pluginyy
v1.0.0
Published
A plugin that provides myPlugin function
Downloads
3
Readme
My Plugin
A plugin that provides myPlugin
function.
Installation
npm install my-plugin
Usage
CommonJS
const { myPlugin } = require('my-plugin');
console.log(myPlugin());
ES Module
import { myPlugin } from 'my-plugin';
console.log(myPlugin());
Browser
Include the script in your HTML:
<script src="node_modules/my-plugin/dist/my-plugin.iife.js"></script>
<script>
console.log(MyPlugin.myPlugin());
</script>