{"_id":"editorconfig-get-indent","_rev":"1736982","name":"editorconfig-get-indent","description":"Given a path, find .editorconfig and get the indent for JavaScript files","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"malandrew","email":"andrew@deandrade.com.br"}],"time":{"modified":"2026-11-16T05:50:39.000Z","created":"2015-04-15T22:18:42.804Z","1.0.0":"2015-04-15T22:18:42.804Z"},"users":{},"author":{"name":"Andrew de Andrade","email":"aandrade@uber.com"},"versions":{"1.0.0":{"name":"editorconfig-get-indent","version":"1.0.0","description":"Given a path, find .editorconfig and get the indent for JavaScript files","main":"editorconfig-get-indent.js","scripts":{"lint":"standard | standard-reporter","test":"npm run lint -s && node test/index.js","precommit":"npm test -s","prepush":"npm test -s"},"author":{"name":"Andrew de Andrade","email":"aandrade@uber.com"},"dependencies":{"editorconfig":"^0.12.2","find-parent-dir":"^0.3.0"},"devDependencies":{"husky":"^0.7.0","standard-reporter":"^1.0.0","tape":"^4.0.0","uber-standard":"^3.6.0"},"license":"ISC","gitHead":"342f660ababfd511b9105b648c8cfcb30aff3307","_id":"editorconfig-get-indent@1.0.0","_shasum":"579639218adcae8156996178eba46febbee4a01c","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.36","_npmUser":{"name":"malandrew","email":"andrew@deandrade.com.br"},"dist":{"shasum":"579639218adcae8156996178eba46febbee4a01c","tarball":"http://registry-npm.ywwl.com/editorconfig-get-indent/download/editorconfig-get-indent-1.0.0.tgz","integrity":"sha512-j1tBd5pUS0DKCbFaiiJh7MHWhoXLv94rtL50ABgGufSwPiDLeZ0zifM6FyF8BA+rdkZbgjzMedTfJYMBNs2OKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICbuZMiiEhVPawqwt8Sxijt48KVhrYfO1+NkfBD3tryqAiEA5MyFK1z/stIcgmldG0buNzGT/azmKhvc6mgkdWDt8Is="}],"size":1769,"noattachment":false,"key":"/editorconfig-get-indent/-/editorconfig-get-indent-1.0.0.tgz"},"maintainers":[{"name":"malandrew","email":"andrew@deandrade.com.br"}],"publish_time":1429136322804,"_cnpm_publish_time":1429136322804}},"readme":"editorconfig-get-indent\n=======================\n\nGiven a path on a filesystem, crawl the parent directories, looking for the\nfirst ancestor that contains an .editorconfig file. Once that file is found,\nparse it and determine the indentation for a file extension (default: 'js');\n\nUsage\n-----\n\n```\nvar editorConfigGetIndent = require('editorconfig-get-indent');\n\nvar options = {\n    defaultIndent: 2,\n    extension: 'js'\n};\n\neditorConfigGetIndent(__dirname, options, function onIndent(err, indent) {\n    if (err) {\n        return console.error(err);\n    }\n    console.log(indent);\n});\n```\n","_attachments":{},"license":"ISC"}