question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Functionality to move NodeJS builtin modules to the top

See original GitHub issue

Hi there, thanks for this package, really cool! Will consider recommending it to our bootcamp students at @upleveled.

One suggestion that came to mind would be to make it the default sort order to sort imports using the new node: scheme / prefix to the top. What do you think?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

2reactions
karlhorkycommented, Aug 26, 2021

Nice, thanks for the reply!

Would suggest using the following replacements for the naming:

  • builtin instead of inbuilt
  • ToTop instead of AtTop
  • Node instead of NodeJS

eg. sortNodeBuiltinModulesToTop

1reaction
nickhudkinscommented, Apr 28, 2022

Howdy! I’ve picked this up and a PR will be incoming momentarily.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CommonJS modules | Node.js v19.3.0 Documentation
CommonJS modules are the original way to package JavaScript code for Node.js. Node.js also supports the ECMAScript modules standard used by browsers and ......
Read more >
Node.js Built-in Modules - W3Schools
Node.js has a set of built-in modules which you can use without any further installation. Here is a list of the built-in modules...
Read more >
Using ES modules in Node.js - LogRocket Blog
Modules enable code organization by splitting a codebase into reusable components such that each performs individual functions and can be ...
Read more >
CommonJS vs. ES Modules: Modules and Imports in NodeJS
Without writing or installing any module, you can just start by importing any of NodeJS's built-in modules: const http = require("http"); const ...
Read more >
Node.js Modules - TutorialsTeacher
Module in Node.js is a simple or complex functionality organized in a single or multiple JavaScript files which can be reused throughout your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found