2.0.1 • Published 3 months ago
@brtmvdl/frontend v2.0.1
@brtmvdl/frontend
Easy Front-end Node.js library
social & donate
how to install
# bash
npm i @brtmvdl/frontend
mv node_modules libs
how to use
<!-- index.html -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Front-end</title>
<script type="importmap">
{
"imports": {
"@brtmvdl/frontend": "./libs/@brtmvdl/frontend/src/index.js"
}
}
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="./index.js"></script>
</body>
</html>
// index.js
import { HTML, nInput, nButton } from '@brtmvdl/frontend'
const app = HTML.fromId('app')
const input = new nInput()
input.setPlaceholder('input')
app.append(input)
const button = new nButton()
button.setText('button')
button.on('click', () => window.alert(`value: ${input.getValue()}`))
app.append(button)
license
2.0.1
3 months ago
2.0.0
3 months ago
1.0.15
3 months ago
1.0.14
4 months ago
1.0.13
4 months ago
1.0.12
5 months ago
1.0.11
6 months ago
1.0.10
7 months ago
1.0.8
7 months ago
1.0.7
8 months ago
1.0.6
8 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago
0.3.1
8 months ago
0.3.0
9 months ago
0.2.0
9 months ago
0.1.0
9 months ago