We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b70ca0 commit 19b93a4Copy full SHA for 19b93a4
sample.js
@@ -1,9 +1,9 @@
1
-var jscr = require('./index');
+var jscomplexity = require('./index');
2
var util = require('util');
3
4
// Promise-style
5
6
-jscr('./src').then(function(data){
+jscomplexity('./src/**').then(function(data){
7
8
console.log(JSON.stringify(data.report, null, 6));
9
@@ -13,13 +13,13 @@ jscr('./src').then(function(data){
13
/**
14
* Node-style version :
15
*
16
- * jscr('./src', function(err, data){
+ * jscomplexity('./src/**', function(err, data){
17
18
* if(err){
19
* return console.log(err);
20
* }
21
- *
+ *
22
* console.log(JSON.stringify(data.report, null, 6));
23
24
* });
25
*/
0 commit comments