Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

UMD export for great good #11

Merged
merged 7 commits into from Jul 8, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 29 additions & 5 deletions README.md
Expand Up @@ -6,14 +6,11 @@ _(... because hunger is the finest spice)_

[![browser support](https://ci.testling.com/hughfdjackson/curry.png)](https://ci.testling.com/hughfdjackson/curry)

# install

```bash
npm install curry
```
# Why

If you don't know currying, and aren't sold on it's awesome, perhaps [a friendly blog post](http://hughfdjackson.com/javascript/2013/07/06/why-curry-helps/) will help.
If you don't know currying, or aren't sold on it's awesomeness, perhaps [a friendly blog post](http://hughfdjackson.com/javascript/2013/07/06/why-curry-helps/) will help.


# Usage

Expand Down Expand Up @@ -57,3 +54,30 @@ zipWith.length; //= 3
zipAdd.length; //= 2
zipAddWith123.length; //= 1
```

# installation

### node/npm

```bash
npm install curry
```

### amd

```javascript
define(['libs/curry.min'], function(curry){
//-- assuming libs/curry.min.js is the downloaded minified version from this repo,
//-- curry will be available here
});
```

### browser

If you're not using tools like [browserify](https://github.com/substack/node-browserify) or [require.js](http://requirejs.org), you can load curry globally:
```html
<script src="libs/curry.min.js"></script>
<script>
<!-- curry available here -->
</script>
```
1 change: 1 addition & 0 deletions curry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -13,7 +13,9 @@
],
"main": "./curry",
"devDependencies": {
"mocha": "1.8.1"
"mocha": "1.8.1",
"browserify": "2.17.2",
"uglify-js": "2.3.6"
},
"testling": {
"files": "test/*-test.js",
Expand All @@ -33,6 +35,7 @@
"harness": "mocha"
},
"scripts": {
"test": "./node_modules/mocha/bin/mocha test"
"test": "./node_modules/mocha/bin/mocha test",
"prepublish": "./node_modules/browserify/bin/cmd.js --standalone curry -e curry.js | ./node_modules/uglify-js/bin/uglifyjs > curry.min.js"
}
}