lightbox-module
v0.0.2
Published
1. Via NPM:
Maintainers
Readme
Install
- Via NPM:
Install NPM package - https://www.npmjs.com/package/lightbox-module:
npm i lightbox-module- The other way, you also can inject
lightbox.jsfile into your HTML code:
<script src="/path/to/dist/lightbox.js"></script>Usages
svelte example
<script lang="ts">
import { onMount } from "svelte";
import lighbox from "lightbox-module";
onMount(() => {
lighbox();
});
</script>Development
$ yarn install
$ yarn devBuild
$ yarn buildor:
$ npm run buildThe dist folder is automatically created and include file lightbox.min.js
Licence
[MIT]
