HTML, CSS and JavaScript
No framework needed. Declare a package in a comment, run one command, and call use('name') from any script.
Plain HTML guide
Use Day.js, Chart.js, D3, Monaco, Supabase and more in plain HTML, CSS and JavaScript, or in Teloce components. One Python command, no node_modules.
pip install teloce-npm
# index.html declares: <!-- Use dayjs from teloce-npm -->
teloce-npm install
python -m http.server 8000pip install teloce-npm teloce-py
# App.vel starts with: Use dayjs from teloce-npm
teloce-npm install
python app.pypip install teloce-npm "flaxon[standard]" teloce-py
# teloce-npm.json: { "entry_html": null, "output_dir": "public/teloce-npm" }
teloce-npm install
flaxon run app:appThen, in your page or component:
await use.ready; // packages load after the page starts
const dayjs = use('dayjs');
console.log(dayjs().format('dddd, MMMM D'));| I want to | Read |
|---|---|
| Understand what it does | Introduction |
| Use it in a plain HTML page | Plain HTML, CSS and JavaScript |
| Use it in a Teloce project | A Teloce project |
| Use it with Flaxon | Flaxon |
| Use it with server-side rendering | Server-side rendering |
| Look up a command or option | Commands, Configuration |
| Fix a problem | Troubleshooting |