GabrieleRomeo / sjs

Safety Javascript - Utility Library

Home Page:http://api.sjs.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sjs - Safety Javascript - Utility Library

Hello and Welcome to this repository.

Sjs is a collection of algorithms and functions wrote during my studies at Bov Academy.

Unlike many other js libraries, Sjs aims to be strongly-typed. The main benefit to being strongly-type is that

when you pass an argument to a function, the Library checks if it belongs to an expected data type.

If this is not the case, the System throws a TypeError Exception.

Functions are collected and categorized under various namespaces using dedicated tags:

Namespace Description Access
A Animations sjs.A
DOM Access to the DOM sjs.DOM
E Extra Functions sjs.E
F Functional Programming sjs.F
U Utility functions sjs.U
V Validator Functions sjs.V
types Collection of Data Types sjs.types

The API documentation can be found here: http://api.sjs.surge.sh/

Build from source

To clone this repository to your local machine run the following command(s):

git clone git@github.com:GabrieleRomeo/sjs.git
cd path/to/repository

Install dependencies

To install all of sjs' required software dependencies, run the following command:

npm install

Build

After you've been installed all the dependencies, you can build the library with the following command(s):

# Development
npm run dev 

# Production 
npm run prod

Unit testing

The following commands are used to run Mocha tests:

# Run each test directly into the shell
npm run test:mocha 

# Run each test within the browser
npm run test:mocha:watch
# enter the 'test' directory by clicking on it

About

Safety Javascript - Utility Library

http://api.sjs.surge.sh/


Languages

Language:JavaScript 96.8%Language:HTML 3.2%