npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

exposure-utils

1.0.14 • Public • Published

Dom and Javascript Utilites

A lightweight, modern javascript utility node module, for simplifying some basic functions and providing a cross browser dom manipulation API.

This library is by no means perfect, extensive or complete. So if you think of a feature/spot a bug, pull request that shit!


Install

    // Might need to install with Admin privileges (sudo).
    npm install exposure-utils

Useage

Require the package and immediately invoke it to have access to the API.

    var utils = require('exposure-utils')();

Equally you can instantiate it with the new keyword. Here's an example.

    var Utils = require('exposure-utils');
    var $ = new Utils();
    
    var array = ['item 1', 'item 2', 'item 3'];
    $.each(array, function(item, index) {
        console.log(item, index);
    });
    
    /**
    Output -
    item 1, 0
    item 2, 1
    item 3, 2
    **/

Browser Support

IE 9+

API

API docs here, API Reference

install

npm i exposure-utils

Downloadsweekly downloads

14

version

1.0.14

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability