Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/panta/rib
Rib is a lightweight CoffeeScript foundation library.
https://github.com/panta/rib
Last synced: about 22 hours ago
JSON representation
Rib is a lightweight CoffeeScript foundation library.
- Host: GitHub
- URL: https://github.com/panta/rib
- Owner: panta
- License: mit
- Created: 2012-03-07T11:13:12.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2018-07-14T04:06:20.000Z (over 6 years ago)
- Last Synced: 2024-12-05T12:48:18.000Z (18 days ago)
- Language: CoffeeScript
- Homepage:
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rib
## A foundation library for building [CoffeeScript][] apps ##
Rib consists of a collection of production-quality essential and highly useful classes, mixins and functions.
Rib is thoroughly tested using [Jasmine][].
Rib works both on the client (browser) and on the server ([Node.js][]).
Rib is extremely lightweight (1.3K minified and compressed).
### Installation ###
To use Rib with [Node.js][], just use npm:
sudo npm install -g rib
To use Rib on the client, just grab [rib.js][] or [rib.min.js][] and put it with your other JavaScript libraries.
### Usage ###
When writing code for [Node.js][], you can require Rib:
```coffeescript
rib = require "rib"
```On the client, include [rib.js][] or [rib.min.js][], and then you can access it through the global module `rib`.
If you want to target both the server and the client, you can write:
```coffeescript
rib = if require? then require("rib") else window.rib
```### Licence ###
Rib is © 2012 Marco Pantaleoni, released under the MIT licence. Use it, fork it.
[CoffeeScript]: http://jashkenas.github.com/coffee-script/
[Node.js]: http://nodejs.org/
[Jasmine]: http://pivotal.github.com/jasmine/
[rib.js]: https://raw.github.com/panta/rib/master/dist/rib.js
[rib.min.js]: [https://raw.github.com/panta/rib/master/dist/rib.min.js