An open API service indexing awesome lists of open source software.

https://github.com/developit/hazelnut

:chestnut: Tiny inline AMD registry.
https://github.com/developit/hazelnut

Last synced: 6 months ago
JSON representation

:chestnut: Tiny inline AMD registry.

Awesome Lists containing this project

README

          

hazelnut [![NPM Version](http://img.shields.io/npm/v/hazelnut.svg?style=flat)](https://www.npmjs.org/package/hazelnut) [![Bower Version](http://img.shields.io/bower/v/hazelnut.svg?style=flat)](http://bower.io/search/?q=hazelnut)
========

[![Join the chat at https://gitter.im/developit/hazelnut](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/developit/hazelnut?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

> What's smaller than an almond? This AMD shim.
>
> ![nuts](https://upload.wikimedia.org/wikipedia/en/thumb/0/09/Common-bulk-nuts.jpg/607px-Common-bulk-nuts.jpg)

---

Why
---

- Well, because **Hazelnut is 322 bytes gzipped.**
- Almond is bigger than it needs to be if you're just using it as a shim.
- The name `hazelnut` was available on [npm](https://npmjs.com)
- Now we can all compete to see who can come up with the smallest implementation _(submit a pull request)_

---

Usage
-----

Instead of passing `{ almond:true }` to Require Optimizer or adding almond to your concatenated source, just prepend `hazelnut`.

---

License
-------

BSD