Skip to content

Commit 19b93a4

Browse files
committed
[doc] Update sample
1 parent 8b70ca0 commit 19b93a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sample.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
var jscr = require('./index');
1+
var jscomplexity = require('./index');
22
var util = require('util');
33

44
// Promise-style
55

6-
jscr('./src').then(function(data){
6+
jscomplexity('./src/**').then(function(data){
77

88
console.log(JSON.stringify(data.report, null, 6));
99

@@ -13,13 +13,13 @@ jscr('./src').then(function(data){
1313
/**
1414
* Node-style version :
1515
*
16-
* jscr('./src', function(err, data){
16+
* jscomplexity('./src/**', function(err, data){
1717
*
1818
* if(err){
1919
* return console.log(err);
2020
* }
21-
*
21+
*
2222
* console.log(JSON.stringify(data.report, null, 6));
23-
*
23+
*
2424
* });
2525
*/

0 commit comments

Comments
 (0)