Giter Site home page Giter Site logo

adamcollins / justjs Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 2.0 95 KB

A lightweight library that allows you to get back to JavaScript's basics by just being JavaScript.

JavaScript 100.00%
javascript javascript-library javascript-framework satire reactjs react angularjs angular funny funny-programming-language

justjs's Introduction

JustJS

alt text

A lightweight library that allows you to get back to JavaScript's basics by just being JavaScript.

Build Status npm version

JustJS is the world's lightest JavaScript library, providing no more functionality than JavaScript already offers, as JustJS is just JavaScript. Our team decided not to improve JavaScript's ugly syntax, poor performance or, its overall low usability in large scale applications in the name of not giving front-end developers another "goddamn JavaScript library learn".

Compatibility

  • AngularJS
  • ReactJS
  • Node.js
  • JQuery.js
  • P5.JS
  • Underscore.js
  • Backbone.js
  • Ember.js
  • LiterallyAnything.js

Setup

npm install

npm install just.js

Include in document

<script type="text/javascript" src="node_modules/just.js/just.js"></script>

Manual install

Place the JustJS folder into your sites home directory. Add the following line into the head of your HTML document.

<script type="text/javascript" src="JustJS/just.js"></script>

Voilà! You have are now ready to use JustJS. To begin, use JavaScript as you would normally as JustJS adds absolutely NO functionality! 

Usage example

Here is an example of how to run a simple Hello World! program.

<!DOCTYPE html>
<html>
<head>
	<title>Testing JustJS</title>
	<!--Step 1) include JustJS-->
	<script type="text/javascript" src="JustJS/just.js"></script>
	<style type="text/css">body{background-color: #191919; color:#FFF;}</style>
</head>
<body>
	<h1 id="title"></h1>
</body>
	<!--Step 2) Use Javascript as normal-->
	<script type="text/javascript">
		document.getElementById("title").innerHTML = "<center>Hello World with JustJS!</center>";
	</script>
</html>

For a more indepth reference on how to use JustJS checkout a comprehensive guide here.

License

Distributed under the ISC license.

justjs's People

Contributors

adamcollins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

akashsoni01

justjs's Issues

Overrode my init() function :(

This framework broke my code! I wrote an init() function, and everything was working. I wanted to use your library, so I included it after my include script, and it called my function too early and then overrode the whole thing so I couldn't even add a checking condition so I could re-run it again later at the proper time!

Breaks DogeLib.coffee!

I've been trying to work JustJS into my latest project involving DogeLib.coffee. However, when I added JustJS, my page broke horribly!

Steps to Reproduce

JustJS version c225687.

DogeLib.coffee

console.log = (_msg) -> 
  window.onload = ->
    document.body.innerHTML = "<img src=\"https://upload.wikimedia.org/wikipedia/en/5/5f/Original_Doge_meme.jpg\">"

index.html

<!doctype html>
<html>
  <head>
    <title>Binks</title>
    <script src="DogeLib.js"></script>
    <script src="just.js"></script>
  </head>
  <body>
    <h1>A serious literary analysis of Jar Jar Binks</h1>
    <p>To be continued...</p>
  </body>
</html>

Expected behavior:

I expected to see my literary analysis of Jar Jar Binks.

Actual behavior:

I saw a doge! It was a truly horrifying experience!


I have no idea why this bug is happening (I've already spent hours troubleshooting the issue to no avail), but I really hope you can fix it. Otherwise, I don't think I'll ever be able to return to the purity of using just JavaScript. :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.