ladder
A library to detect JSON indentation
Install
$ npm install ladder
Tests
$ npm test
Methods
ladder(jsonString)
jsonString is a valid json string. It returns either the number of spaces or '\t' if tabs are used
Examples
test.json
{
"test": "hellow"
}
example.js
var ladder = fs = path = ; fs;
License
MIT