Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use server.json per default

  • Loading branch information...
commit 5803bea439afe1e7d366a8a204b3840077fb00f3 1 parent ac4f7f5
@kof authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  lib/codenazi.js
  2. +1 −1  readme.md
View
3  lib/codenazi.js
@@ -9,7 +9,8 @@ var fs = require('fs'),
*/
exports.options = {
files: [],
- config: {},
+ // use server.json if no config passed
+ config: join(__dirname, '..', 'conf', 'server.json'),
callback: function() {},
recursive: false,
linter: {
View
2  readme.md
@@ -26,7 +26,7 @@ You can easily add more quality tools.
var codenazi = require('codenazi');
codenazi.run({
files: "/path/to/file" // can be an array or directory
- config: "/path/to/config.json" // can be a json object or path to conf json, see ./conf/*
+ config: "conf/server.json" // can be a json object or path to conf json, see ./conf/*
recursive: false, // read dir recursively, default to false
// callback functions, which is called on complete and errors array is passed
// see ./bin/cli.js
Please sign in to comment.
Something went wrong with that request. Please try again.