Category Archives: Wordpress

Installing Node.js® and NPM on Windows

What is Node.js®?

Node.js® is a JavaScript-based environment which you can use to create web-servers and networked applications.

What is NPM?

NPM is a “package manager” that makes installing Node “packages” fast and easy. A package is just a code library that extends Node by adding useful features.
NPM is installed when you install Node.js®

Here are the steps to install Node.js and NPM:

  1. Download the setup from
  2. Run the setup (the .msi file you downloaded in the previous step.)
  3. Follow the prompts in the setup (Accept the license agreement, click the NEXT button a bunch of times and accept the default installation settings).
  4. Now restart your computer. You won’t be able to run Node.js until you restart your computer.

You can check what version of each is installed by running simple commands:

  1. Testing Node. Open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v
  2. Testing NPM. Open the Windows Command Prompt, Powershell or a similar command line tool, and type npm -v
  3. And to make sure that node.js is working properly. Create a test JavaScript file: name it hello.js, and just add the code
    console.log('Node is installed!');

    Now open your command line program, navigate to the folder where you save the file and type node hello.js.
    You should see the output Node is installed!. If you see this output it means node.js is working properly. Enjoy 🙂

How to write a superscript Registered ® in product name and page titles in CMS

Peoples are complaining that the products names or page titles which are registered trademarks. They are not shown superscript as the customer wishes them to be. They aren’t able to add <sup> tags in the titles.

You can simply add the following JavaScript snippet that replaces all occurrences of ® with ®.

<script type="text/javascript">
$('body :not(script)').contents().filter(function() {
   return this.nodeType === 3;
}).replaceWith(function() {
   return this.nodeValue.replace(/[®]/g, '<sup>$&</sup>');