Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc61f0ee

Browse files
committed
Add downloadRank to npm badge
1 parent530f508 commitc61f0ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ case CoffeeScript needs to be listed in your devDependencies.
2222

2323
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)
2424

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

2727
<br />
2828

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

107107
// port is now 3000
108108
revert();
109-
// port is now the previous value
109+
// port is now the previous value
110110
```
111111

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

141-
```javascript
141+
```javascript
142142
rewire("./myModule.js")===rewire("./myModule.js");// = false
143143
```
144144

@@ -170,7 +170,7 @@ API
170170

171171
###rewire(filename: String): rewiredModule
172172

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp