0.2.7 • Published 6 years ago

legume-loader v0.2.7

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Legume Loader

An easy way to manage dependencies in vanilla JS. No bundler, no browserify, just JavaScript comments.

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 />
  </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

  • This is based off of, in concept and some code, a previous project of mine, bookmarklet-loader.
  • Which in turn used a lot of code from mrcoles/bookmarklet. Legume uses very little code from there, I think at this point just the code for iterating throught the lines of a script, but the project was inspired by it.
  • Some code taken from lukechilds/when-dom-ready.
1.0.0-4

6 years ago

1.0.0-3

6 years ago

1.0.0-2

6 years ago

1.0.0-1

6 years ago

1.0.0-0

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago