How to use absolute import paths in Node.js
Say goodbye to ../
times million
and use absolute import paths from the app's root directory instead.
Two contenders:
Basetag
and
Sultan's sexy-require
! 🤺
Say goodbye to ../
times million
and use absolute import paths from the app's root directory instead.
Two contenders:
Basetag
and
Sultan's sexy-require
! 🤺
npx cloc
Published on in npm
Last updated on
Run npx cloc [options] <files/dirs>
.
E.g. npx cloc src/
or npx cloc foo.js bar.css
.
toLocaleString()
in Node.jsPublished on in JavaScript, Node.js and npm
Last updated on
With Node.js 13+,
it should just work.
With earlier Node.js versions,
you need to install and use the full-icu
package.
package.json
automaticallyPublished on in npm
Last updated on
Just run npx sort-package-json
.