Skip to content

takumiao13/js-wheels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS WHEELS

Reinventing some javascript wheels, just for studying :)

Libs

async & promise

  • asap - Executes a task asynchronously as soon as possible (microtask).
  • genRunner - A generator runner.
  • thunkify - A thunkify implementation.
  • Promise - A simple Promises/A+ implementation
  • CancelToken - Cancel a promise by CancelToken.
  • asyncEmitter - Asyncify EventEmitter.
  • AsyncQueue - Promise based async queue.

framework

ajax

  • ajax - JS API for handleing XHR.
  • fetch-extra - Simple extend of window.fetch
  • jsonp - A JSONP implementation.

others

  • timer - A better interval.
  • querystring - Parsing and formatting URL query strings for Browser.
  • amd - A simple AMD implementation for all bundled js.
  • createError - Create custom error.
  • cookies - JS API for handling cookies.
  • Storage - A better localStorage.
  • dataCache - setter/getter arbitrary data associated with the specified element, like jQuery.data().

License

MIT

Copyright (c) 2020-present, takumiao13