Novices Plagiarizing Mozart
    Have ideas to improve npm?Join in the discussion! »

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

    Install

    npm i detect-json-indent

    DownloadsWeekly Downloads

    27

    Version

    0.0.3

    License

    BSD-2-Clause

    Unpacked Size

    3.49 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar