Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Legume Loader

An easy way to manage dependencies in vanilla JS. No bundler, just import statements.

Usage

index.html:

<html>
  <head>
    <script src=https://cdn.jsdelivr.net/npm/legume-loader@0.2.4/legume.min.js data-legume-entry=script.js></script>
  </head>
  <body>
    <div id=mydiv></div>
  </body>
</html>

script.js:

import $ from "npm:jquery";
$("#mydiv").text("Now I can use jQuery!");

Why is it called Legume?

I dunno, why are you bean so mean?

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

You can’t perform that action at this time.