Skip to content

siromath/shortify-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

shortify-js

You can write JavaScript objects shorter for browser.

Install

npm install --save shortify-js

Example

import s from 'shortify-js';

s.d.write('Hello'); // document.write('Hello');
s.l('Good'); // console.log('Good');

documentation

  • d - document
  • w - window
  • c - console
  • m - Math
  • id - document.getElementById()
  • class - document.getElementsByClassName()
  • tag - document.getElementsByTagName()
  • q - document.querySelector()
  • qa - document.querySelectorAll()
  • l - console.log()
  • iw - window.innerWidth
  • ih - window.innerHeight
  • ow - window.outerWidth
  • oh - window.outerHeight

About

You can write JavaScript objects shorter for browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published