Removing a Cordova plugin

Once you have added Cordova plugins to your project, you can list them by running:

cordova plugin list

You’ll get a list such like this:

com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-statusbar 1.0.1 "StatusBar"
cordova-plugin-whitelist 1.1.0 "Whitelist"

Now simply you can run the below for removing a Cordova plugin:

cordova plugin remove <PLUGIN_NAME>

For example, to remove the statusbar plugin, run

cordova plugin remove cordova-plugin-statusbar

stProgress.js – A light-weighted slim top progress bar

I wanted a slim top progress bar for one of my project, like you see on YouTube and Medium. The project had progressed a lot, I didn’t want every developer to write start and stop of this progress bar. Instead, one which could automatically show up if XMLHttpRequest is fired. Wrote stProgress.js which meets my requirements.

Continue reading stProgress.js – A light-weighted slim top progress bar

Clone an object in javascript with prototype chain intact

Many times you’d need to clone an object in JavaScript. It can be achieved in many ways. However, the prototype chain is lost in many of the mechanisms. In case you are looking for a shallow cloning, which retains the prototype chain, without using a library like lodash, angular or jQuery, here is the way.

Continue reading Clone an object in javascript with prototype chain intact

Implementing constants in JavaScript

Unlike most modern languages, JavaScript till ES5 doesn’t have a clearly defined way of declaring constants. However, in this language, when there is no single defined way, there are multiple suggested way of the implementation. We’ll see how to implement constants in JavaScript.

Continue reading Implementing constants in JavaScript