Skip to content

Commit

Permalink
Add downloadRank to npm badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Feb 25, 2015
1 parent 530f508 commit c61f0ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -22,7 +22,7 @@ case CoffeeScript needs to be listed in your devDependencies.

If you want to use rewire also on the client-side take a look at [client-side bundlers](https://github.com/jhnns/rewire#client-side-bundlers)

[![npm status](https://nodei.co/npm/rewire.svg?downloads=true&stars=true)](https://npmjs.org/package/rewire)
[![npm status](https://nodei.co/npm/rewire.svg?downloads=true&stars=true&downloadRank=true)](https://npmjs.org/package/rewire)

<br />

Expand Down Expand Up @@ -106,7 +106,7 @@ var revert = myModule.__set__("port", 3000);

// port is now 3000
revert();
// port is now the previous value
// port is now the previous value
```

For your convenience you can also use the `__with__` method which reverts the given changes after it finished.
Expand Down Expand Up @@ -138,7 +138,7 @@ myModule.__with__({
**Difference to require()**<br>
Every call of rewire() executes the module again and returns a fresh instance.

```javascript
```javascript
rewire("./myModule.js") === rewire("./myModule.js"); // = false
```

Expand Down Expand Up @@ -170,7 +170,7 @@ API

### rewire(filename: String): rewiredModule

Returns a rewired version of the module found at `filename`. Use `rewire()` exactly like `require()`.
Returns a rewired version of the module found at `filename`. Use `rewire()` exactly like `require()`.

### rewiredModule.&#95;&#95;set&#95;&#95;(name: String, value: *): Function

Expand Down

0 comments on commit c61f0ee

Please sign in to comment.