Skip to content

Teloce-NPMnpm packages, no Node.js

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.

Teloce-NPM

Start in two minutes ​

bash
pip install teloce-npm

# index.html declares:  <!--  Use dayjs from teloce-npm  -->
teloce-npm install
python -m http.server 8000
bash
pip install teloce-npm teloce-py

# App.vel starts with:  Use dayjs from teloce-npm
teloce-npm install
python app.py
bash
pip install teloce-npm "flaxon[standard]" teloce-py

# teloce-npm.json: { "entry_html": null, "output_dir": "public/teloce-npm" }
teloce-npm install
flaxon run app:app

Then, in your page or component:

js
await use.ready;                    // packages load after the page starts
const dayjs = use('dayjs');
console.log(dayjs().format('dddd, MMMM D'));

Where to go next ​

I want toRead
Understand what it doesIntroduction
Use it in a plain HTML pagePlain HTML, CSS and JavaScript
Use it in a Teloce projectA Teloce project
Use it with FlaxonFlaxon
Use it with server-side renderingServer-side rendering
Look up a command or optionCommands, Configuration
Fix a problemTroubleshooting

Released under the MIT License.