STDLIB.js is a collection of commonly desired polyfills and additions that extend native JavaScript objects.
Most of STDLIB.js has been heavily borrowed from or inspired by the following libraries:
This is some serious BETA software. All of code borrowed has not had it's tests ported yet and there is no documentation to speak of. That said I am actively working on this so I should have an rc1 out soon.
STDLIB.js uses Sprockets to build any combination of libraries available within it. Because we use sprockets you can include the the stdlibjs
gem into any rails project that uses Sprockets and require the libraries at will.
Go to stdlibjs.com, select that libraries you want, build and download.
Add this line to your application's Gemfile:
gem 'stdlibjs'
Add something like this to any JavaScript asset
//= require 'Array/include'
Install the gem:
gem install stdlibjs
And build away:
stdlibjs build Array/include Function/clone Number/times
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- Finish porting / writing all of the tests
- Come up with some form of documentation to be available at stdlibjs.com