sparetime.js

1.0.5 • Public • Published

sparetime.js Beta

A dom manipulation library that spares your time.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

node

Installing

npm install sparetime.js --save

Up and running

 window.onload = () => {
          spare();
        }

Examples

  • Create, add attributes, add Classes, add Html, get element
 let m = Spare.create('li').attr('id', 'working').Class('i','work', 'here').html(" Spare.js Rocks").element;
 Spare.sel('#but').html(`<span> This is cool huh? </span>`);

  • Select and append
  Spare.sel('#list').append(m);
 Spare.addEvent('#but', 'click',() => {
            return  Math.floor(Math.random() * 1000)
          });

Built With

  • Typescript
  • javascript
  • Webpack

Versioning

We use Npm for versioning. For the versions available, see the tags on this repository.

Authors

  • Isaac Browne - Initial work - Ispirett

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to typescript

Dependents (0)

Package Sidebar

Install

npm i sparetime.js

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

14.4 kB

Total Files

9

Last publish

Collaborators

  • ispirett