1.0.1 • Published 7 years ago

just.js v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

JustJS

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.