Skip to content

@mlouro /JSHINT Node.js app
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JSHINT Node.js app and rules
var express = require('express')
var app = express.createServer();
var JSHINT = require('jshint').JSHINT;
app.use(express.bodyParser());
app.get('/', function(req, res){
res.send('hello world');
});
app.post('/', function(req, res){
results = JSHINT(req.body.doc, {
eqeqeq: true,
forin: true,
immed: true,
newcap: true,
noempty: true,
undef: true,
strict: true,
white: true
});
res.send(JSHINT.data());
});
app.listen(8081);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.