Find the host’s cloud provider using Node.JsIf you ever wanted to inject or use cloud provider-specific code in the codebase or DevOps work, You can now do it very easily thanks to cloud-detect-js(https://github.com/vithalreddy/cloud-detect-js#readme) Node.js Module, which helps to determine…
Inverse of pandas json_normalize or json_denormalize – python pandasAs we all know pandas “json_normalize” which works great in taking a JSON Data, however, nested it is and convert’s it to the usable pandas dataframe. pandas json_normalize documentation Now If you want…
Installing Nix in WSL UbuntuIf Try to install Nix package Manager on Window Subsystem for Linux or WSL, it throws some cryptic error messages, But There is work around for installing Nix On WSL Ubuntu or any…
JavaScript set object key using variable (es6 & es5)Sometimes you want assign key to your js object, that key is dynamic, coming from database or user input etc, you can’t define it as normal object key, for doing this we will…
How to run shell script file or command using Nodejs?If you ever wanted to run some automation script or file in your Unix/Linux machine using nodejs? It may be to build your binaries from source code or for some tooling in your…
Receive Inbound emails using Node.js – Node-MailinIf you’re setting up, CRM or any Web app and want to receive emails to your domain dynamically without having to setup mail account for every domain subdomain and username, Then you can use…
Access parent of Iframe using JavaScript (same-domain or cross-domain)Iframe or inline frame (<iframe></iframe>) is used to embed another document within the current HTML document. Many times you want access function of a parent using an iframe and vice-versa or you want…
Push and Pop Items Into MongoDB Array Via Mongoose in Node.jsHow To Push or Pop Items Into MongoDB Document Array Via Mongoose in Node.js (Express.js) If you’re Developing your Rest API’s using Node.js or Express.js, Then You’re probably using MongoDB as Database for…
How To Access the request object inside a GraphQL resolver Function (Apollo-Server-Express)If you’re working with GraphQL (a query language for your API), and you’re using apollo-server-express, You may notice unlike express-graphql, request object will not be available in context, if it’s not defined in apollo-sever-express…
Get User’s IP address in Node.js (Express.js)Getting User’s IP or Request IP address sound’s pretty complex right? But It’s pretty Straight forward using Node.js and if you’re using Express.js, then it becomes even easier. We will discuss both methods…