creates a .editorconfig file in your package dir

Usage no npm install needed!

<script type="module">
  import dotEditorconfig from '';



creates a .editorconfig file in your package dir

Usage | Source | Contributing | License

KLP NPM version


EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.

Launching the command

npm install dot-editorconfig --save-dev

will create, in your package dir, an .editorconfig file with this content. Please note that installing dot-editorconfig will not override your .editorconfig file, if any. If you need to upgrade it is necessary to remove it manually before, for instance

rm .editorconfig

It is up to you to choose to gitignore or version and modify further your .editorconfig according to your needs.


If you don't have npm you can just copy and paste the following source.

# EditorConfig is awesome:

# This file was created via command line
#     npm install dot-editorconfig

# top-most EditorConfig file
root = true

end_of_line = lf
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_size = 2

indent_size = 4

indent_style = tab

indent_style = tab


If you also like the idea to have an easy way to install and share an .editorconfig file, and you think you can contribute adding something missing or improving current configuration, edit this README in the Source section and send a pull request. Do not edit the .editorconfig file, since it is generated by command

npm run markdown2code



OS icons provided by icons8.