1.0.2 • Published 7 years ago

jt.js v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Tjs

This is a small utility for allowing the use of jQuery-like syntax.

document.ready

t(() => {console.log('Ready!')})

document.querySelector

t('#someId')

addEventListener

t('#someId').on('click', () => { alert('someId was clicked!' })

fetch extensions

fetch('url').then(response => response.json())

becomes

t.fetchJson('url')
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago