Coder Social home page Coder Social logo

Javascript Utilities Library (jsutillib)

This library pretends to be a set of utility functions, clases, etc. that can be used in JavaScript applications. The underlying idea is to create curated components that are flexible enough to be re-used in different applications. The library is composed by a set of sub projects that have their specific functionality, but together they are more powerful together.

Some parts of the library are intended to be used in conjunction with jQuery and/or Bootstrap. Please check the documentation of each project for more information.

Parts of the Library

The library is built from the next projects:

  • common utilities, which is set of javascript helper classes and functions for javascript applications. (e.g. object cloning, html tag creation using pug/jade syntax, objects processing, etc.)
  • selection utilities, that is a set of javascript components that enable to have components in which draw selections, make html elements grabbable to be moved around the page, and also make div resizable.
  • active objects, that converts an object into an active object that can emit events when one of its properties changes its value.

Installation

From a CDN

The preferred method to use jstilslib is to get it from a CDN, and put it after jQuery and Bootstrap:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jsutilslib/[email protected]/jsutilslib.min.js"></script>

From source

A Makefile is provided to create the single all-in-one js and css files for the library.

# npm install -g uglify-js clean-css-cli
...
# git clone https://github.com/jsutilslib/jsutilslib --recursive
# cd jsutilslib
# make
Building common
uglifyjs js/*.js  -b | cat notice - > common.js
uglifyjs js/*.js  | cat notice.min - > common.min.js
Building selection
uglifyjs js/*.js  -b | cat notice - > selection.js
uglifyjs js/*.js  | cat notice.min - > selection.min.js
cleancss css/*.css --format beautify | cat notice - > selection.css
cleancss css/*.css | cat notice.min - > selection.min.css
Building activeobject
uglifyjs js/*.js  -b | cat notice - > activeobject.js
uglifyjs js/*.js  | cat notice.min - > activeobject.min.js
uglifyjs init.js  common/common.js  selection/selection.js  activeobject/activeobject.js -b  | cat notice - > jsutilslib.js
uglifyjs init.js  common/common.min.js  selection/selection.min.js  activeobject/activeobject.min.js  | cat notice.min - > jsutilslib.min.js
cleancss selection/selection.css --format beautify | cat notice - > jsutilslib.css
cleancss selection/selection.css | cat notice.min - > jsutilslib.min.css

Now you can use files jsutilslib.min.js and jsutilslib.min.css in your project:

<link rel="stylesheet" href="jsutilslib.min.css">
<script src="jsutilslib.min.js"></script>

jsutillib's Projects

activeobject icon activeobject

ActiveObject is a library that converts an object into an active object that can emit events when one of its properties changes its value.

common icon common

Common utilities for jsutils library

jsutilslib icon jsutilslib

This library pretends to be a set of utility functions, clases, etc. that can be used in JavaScript applications. The library is composed by a set of sub projects that have their specific functionality, but together they are more powerful together.

nojquery icon nojquery

This noJQuery, which is a library to ease dealing with HTML components in javascript, without the overhead of jQuery

selection icon selection

Utilities to create selections in divs and to make objects sizable and/or grabbable

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.