# detect-json-indent **Repository Path**: mirrors_mapbox/detect-json-indent ## Basic Information - **Project Name**: detect-json-indent - **Description**: detect json indent levels - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/tmcw/detect-json-indent.png)](https://travis-ci.org/tmcw/detect-json-indent) ## detect JSON indent ```js 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 ```js var detect = require('detect-json-indent'); var indentString = detect(jsonString); ```