layer-esm
v1.0.1
Published
Layer ESM is a JavaScript library.
Maintainers
Readme
layer-esm
Layer ESM is a JavaScript library.
Install
Use layer-esm via npm.
npm install layer-esm --saveOf course, you can also serve the built package files yourself. The ESM, CommonJS, and type declaration outputs are written to dist/.
Usage
import layer, { alert, confirm, load, msg } from "layer-esm";
msg("Saved");
const loading = load(1, { content: "Loading..." });
confirm("Continue?", {}, () => {
alert("Confirmed");
layer.close(loading);
});Contributing
Development Environment
| Dependency | Version | |------------|----------| | Node.js | v22.21.1 | | TypeScript | v5.1.6 |
Scripts
Install Dependencies:
npm iDevelopment:
npm run devBuild:
npm run buildTest:
npm testSingle test file:
npm test -- test/layer.test.jsDocumentation:
npm run docsDocker:
docker compose up -d --buildVisit: http://localhost:8080
License
This software is released under the terms of the MIT license.
