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.
- Host: GitHub
- URL: https://github.com/developit/hazelnut
- Owner: developit
- License: mit
- Created: 2015-01-22T03:02:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T14:50:39.000Z (over 8 years ago)
- Last Synced: 2025-04-10T11:16:07.697Z (9 months ago)
- Language: JavaScript
- Homepage: http://npm.im/hazelnut
- Size: 10.7 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hazelnut [](https://www.npmjs.org/package/hazelnut) [](http://bower.io/search/?q=hazelnut)
========
[](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.
>
> 
---
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