The new import syntax is great for a variety of reasons but one of my biggest complaints has been that my IDE is helpless when it comes to autocompletion of named exports. It’s simply a matter of the order in which the import statement is written. Example:
If you’re anything like me, the repetition of writing the above code had been maddening on some deep level but also something you deal with because it doesn’t seem worth the effort to do anything about. …
I’ve been doing some general exploration of core Node.js modules lately and recently took a look at the
util module. I had seen it used here and there in the past but never really explored it further. What I found are several special use case but handy functions. Here’s a quick rundown of each, along with some explanation and examples. As usual, the official docs are great as well.
The docs note that
util is maintained for internal use however the tools within it are generic enough that they could also benefit application and module developers. …
So you’ve set up an Elasticsearch instance on your AWS account. You got through all the various IAM policy stuff and it’s all doing what you want. Hooray! Once you want to expose your hosted Kibana dashboard to a limited public, you realize that there’s no way to restrict access aside from IP whitelists and signed requests using your AWS tokens. Where do you go from here?