Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

mapbox/detect-json-indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

About

detect json indent levels

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •