detect-json-indent

0.0.3 • Public • Published

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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    141
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    141
  • 0.0.2
    1
  • 0.0.1
    2
  • 0.0.0
    3

Package Sidebar

Install

npm i detect-json-indent

Weekly Downloads

122

Version

0.0.3

License

BSD-2-Clause

Unpacked Size

3.49 kB

Total Files

6

Last publish

Collaborators

  • mapbox-admin