0.0.3 • Published 6 years ago

detect-json-indent v0.0.3

Weekly downloads
8
License
BSD-2-Clause
Repository
github
Last release
6 years ago

Build Status

detect JSON indent

detect(JSON.stringify(data, null, 4)) // '    '
detect(JSON.stringify(data, null, '\t')) // '\t'
detect(JSON.stringify(data, null, 2)) // '  '
detect(JSON.stringify(data)) // null

api

var detect = require('detect-json-indent');
var indentString = detect(jsonString);