Docs: Use syntax highlighting for JSON samples; use diacritics
Docs: Simplify example with npm start
Refactoring: Add newline at end-of-file per convention (also makes diffs cleaner)
Refactoring: Avoid global require (which would be repeated on each function
call without need as only using functions)
Linting (ESLint): Add eslint:recommended with semi and indent rules
Linting (npm): Add recommended engines, pointing to minimum Node LTS version (8+) and required by new nodemon
Maintenance: Add .editorconfig to enforce consisting spacing in IDEs
npm: Add lint script
npm: Update deps (expres, fsevents) and devDep (nodemon)
Let me know if you need these as separate PRs or explanations on any of the additions.
I might also recommend using const and if needed, let, over var, which is supported in Node environments going back quite a ways. I could add a PR for that as well if you like.
npm start
eslint:recommended
with semi and indent rulesengines
, pointing to minimum Node LTS version (8+) and required by new nodemon.editorconfig
to enforce consisting spacing in IDEslint
scriptLet me know if you need these as separate PRs or explanations on any of the additions.
I might also recommend using
const
and if needed,let
, overvar
, which is supported in Node environments going back quite a ways. I could add a PR for that as well if you like.