Skip to content

Commit 01c6d16

Browse files
author
ft
committed
update readme
1 parent 70e18ec commit 01c6d16

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: node_js
22
branches:
33
only:
4-
- gh-pages
4+
- gh-pages
55
env:
66
global:
7-
- SAUCE_USERNAME: ftft1885
8-
- secure: "V/9ZbaLE5CNrXSN945IBzjQSK5pVcACtki32YDwZtY9KgK74exP5Joqh8gWz1P+px9VeRrbcWMQE8N7EVuqbdJIjiY7JFexlr5tuLWgzSDYzzsuMTWGQRO8LmWz+A9gjn8zew4FCzQ+k3jMKA2Hm8L1Lfaq0D2woEPEF6B2rBOs="
7+
- SAUCE_USERNAME: ftft1885
8+
- secure: KC1UlwOFFUFvZdlpGIfDRgxCzmOu6/x5e1bqafv8poNZlYSPAy8kI5Og1kBw3HPzVwcNYdgGaYcNaXNpVtL7mB+ydverNyJpbfaPRORDPTdRzDinC2g0Skjqykcoy8KyfcxAG1zVlrifFA8tabHFrIV61RUel4RyKQwNXt8xK3o=

_readme.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Introduction
33

44
[Demo](http://chunpu.github.io/min-debug/?debug=*)
55

6-
min-debug is inspired by [tj@debug](https://github.com/visionmedia/debug)
6+
`min-debug` is inspired by [tj@debug](https://github.com/visionmedia/debug)
77

88
Support IE6+
99

@@ -22,22 +22,23 @@ Start
2222

2323
Debug with localStorage
2424

25-
Type `localStorage[mykey] = '*'`, and debug just like tj@debug
25+
Type `localStorage[mykey] = '*'`, and debug just like tj's debug
2626

2727

2828
Debug with page
2929

3030
If browser not support localStorage or you want to see debug on page, use url debug
3131

32-
Type `mykey='*'` in `location.search` or `location.hash`, and will see debug info in a textarea on page
32+
Type `mykey='*'` in url href either `location.search` or `location.hash`, and will see debug info in a textarea on page
3333

34-
> the key pattern is regexp match, just like tj's debug, e.g. `localStorage.debug = 'api*, call, -*verbose*'`
34+
> the key pattern is regexp match, just like tj's debug
35+
> e.g. `localStorage.debug = 'api*, call, -*verbose*'`
3536
3637

3738
Usage
3839
---
3940

40-
run `min-debug` directly with [dist/debug.js](https://github.com/chunpu/min-debug/blob/gh-pages/dist/debug.js), support
41+
run `min-debug` directly with [dist/debug.js](http://chunpu.github.io/min-debug/dist/debug.js), support
4142

4243
- window.debug
4344
- define
@@ -51,7 +52,7 @@ module.exports = exports = require('min-debug')
5152
exports.init('mykey') // default is debug
5253
```
5354

54-
`min-debug` does not support print format, because we may need log on some old browser like IE6
55+
`min-debug` does not support *print format*, because we may need log on some old browser like IE6
5556

5657
```js
5758
debug('my data', {foo: 'bar'}) // min-debug style

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "min-debug",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Debug for browser in console or display on page",
55
"main": "debug.js",
66
"directories": {

readme.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Introduction
1919

2020
[Demo](http://chunpu.github.io/min-debug/?debug=*)
2121

22-
min-debug is inspired by [tj@debug](https://github.com/visionmedia/debug)
22+
`min-debug` is inspired by [tj@debug](https://github.com/visionmedia/debug)
2323

2424
Support IE6+
2525

@@ -38,22 +38,23 @@ Start
3838

3939
Debug with localStorage
4040

41-
Type `localStorage[mykey] = '*'`, and debug just like tj@debug
41+
Type `localStorage[mykey] = '*'`, and debug just like tj's debug
4242

4343

4444
Debug with page
4545

4646
If browser not support localStorage or you want to see debug on page, use url debug
4747

48-
Type `mykey='*'` in `location.search` or `location.hash`, and will see debug info in a textarea on page
48+
Type `mykey='*'` in url href either `location.search` or `location.hash`, and will see debug info in a textarea on page
4949

50-
> the key pattern is regexp match, just like tj's debug, e.g. `localStorage.debug = 'api*, call, -*verbose*'`
50+
> the key pattern is regexp match, just like tj's debug
51+
> e.g. `localStorage.debug = 'api*, call, -*verbose*'`
5152
5253

5354
Usage
5455
---
5556

56-
run `min-debug` directly with [dist/debug.js](https://github.com/chunpu/min-debug/blob/gh-pages/dist/debug.js), support
57+
run `min-debug` directly with [dist/debug.js](http://chunpu.github.io/min-debug/dist/debug.js), support
5758

5859
- window.debug
5960
- define
@@ -67,7 +68,7 @@ module.exports = exports = require('min-debug')
6768
exports.init('mykey') // default is debug
6869
```
6970

70-
`min-debug` does not support print format, because we may need log on some old browser like IE6
71+
`min-debug` does not support *print format*, because we may need log on some old browser like IE6
7172

7273
```js
7374
debug('my data', {foo: 'bar'}) // min-debug style

0 commit comments

Comments
 (0)