editorconfig-indent
get indent_size
and indent_style
from .editorconfig
file
Installation
$ npm install editorconfig-indent
Usage
var fs = var getIndent = var editorconfig = fs /*{ indentSize: { all: 4 }, indentStyle: { all: 'space' }}*/ /* specify the file extension */ /*{ indentSize: { all: 4, css: 2, scss: null }, indentStyle: { all: 'space', css: null, scss: null }}*/
License
The MIT License (MIT)
Copyright (c) 2015 Masaaki Morishita