Skip to content
This repository has been archived by the owner on Jul 7, 2018. It is now read-only.

Installation and usage

Dmitry Parzhitsky edited this page May 2, 2017 · 4 revisions

To take benefits from using check you should first install it. There are several ways to do that.

To install check as module using npm you simply install it as a dependency of your project.
Remember that the name of the package is different – checkjs – from the name of this repository:

md my-project
cd my-project
npm init
npm install checkjs --save

Now you can safely use it in your index.js, main.js or whatever .js file you've got:

let check = require("checkjs");

2. Using <script> tag

This feature will be available in the nearest future

To include check as a global variable on your HTML page, Ctrl+C and Ctrl+V the root folder of check in your preferred folder.
Now you just simply add the following <script> tag to the <head> of the document template:

<script src="path/to/check/index.js"></script>

Voila! You can access the global check variable from all of your document!

Chapters

  1. General todo
  2. Existance todo
  3. Types todo
  4. Object todo
  5. Array todo
  6. String todo
  7. Number todo
  8. Bundle todo
  9. Proxy todo
Clone this wiki locally