Introduction

Using the JavaScriptLibrary.js API you'll be able to experience coding advantages unlike any you have known. Zero problems, increased efficiency, number one programming forever.

Play around with the library right here in this live code editor. This is an example of an editable embed, a feature of CodePen.

See the Pen Dumb Output by Chris Coyier (@chriscoyier) on CodePen.

Hey!

In case it's not entirely clear, this is a fake project. But it's a real website template you can use! Here it is on CodePen for your forking or downloading pleasure.

Installation

JavaScriptLibrary.js is available on npm, so you can:

npm i javascriptlibrary --save-dev
# or
yarn add javascriptlibrary

Then use it in your JavaScript like:

import library from "JavaScriptLibrary";

Or you can load it from a CDN like:

<script src="https://cdnjs.cloudflare.com/ajax/libs/javascriptlibrary/1.0.0/umd/javascriptlibrary.min.js"></script>

Which gives you a library global.

Getting Started

Now you can use this earth-shattering library.

library.add(2, 2);
// 4

library.subtract(100, 20);
// 80

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quae, totam nemo aliquam id at repellat tempore error earum qui autem, ab ea ducimus eos sint modi blanditiis quam porro nihil.

Practical Usage

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Enim ullam tempora eius consequuntur sequi explicabo quae. Ad ea consequatur dicta, eligendi laudantium labore assumenda, eos aspernatur eveniet fuga, perferendis sequi.

Add

library.add(1, 7);

It can take any number of parameters.

library.add(7, -2, 14);

Subtract

library.subtract(18, 1);

It can take any number of parameters and subtracts all but the first from the first.

library.add(1, -2, 1478621);

Multiply

library.multiply(5, 8);

It can take any number of parameters.

library.multiply(8, "3e2", 100);

Divide

library.divide("this country", "in half 🤕");