How to find outdated packages in npm?

Javascript on MoreOnFew.com

NPM as a package manager has been a very useful tool in web development. Using npm has made it very convenient for us to add various packages to our web development projects. However, like with other software, our npm packages too get outdated either because a new feature has been introduced, the code has been … Read more

How to find unused dependencies in npm?

Javascript on MoreOnFew.com

NPM has become the most popular package manager over time. It is really helpful and useful to manage the package dependencies of your project. However, over time, as your project keeps growing and new packages get released, there are times when we move on to a better alternative of a package or even stop using … Read more

Uncaught SyntaxError: Unexpected end of input – Causes And Fix!

Javascript on MoreOnFew.com

I know that sometimes the errors we face in JavaScript can be difficult to debug. While with all the modern tools like Chrome developer tools etc the debugging has become far easier, there still are times when we come across issues that are tricky to debug. One such issue is the “Uncaught SyntaxError: Unexpected end … Read more

How to replace text in JavaScript

Javascript on MoreOnFew.com

Working with text or strings in JavaScript is really interesting. In fact text or “String” as it is called in JavaScript is the most common data type that a JavaScript programmer would encounter quite often. And many a times your would come across scenarios where you might have to replace a text in JavaScript. Thankfully, … Read more

What is the difference between Number.isInteger() and Number.isSafeInteger() in JavaScript ?

Javascript on MoreOnFew.com

As a part of ES6 (also known as ECMAScript 2015 or ECMAScript 6), there are a couple of new JavaScript features and methods introduced. Today we would be concentrating on just two of them i.e Number.isInteger() and Number.isSafeInteger(). What is Number.isInteger() ? The Number.isInteger() is a new method of the Number object introduced as a … Read more

How to detect support for a CSS feature using @supports ?

CSS3 on MoreOnFew.com

With many new CSS features being introduced regularly it has become important to check for the support of these newer CSS properties before we use them. While there are feature detection tools like Modernizr etc, not every time do we actually require to load a JavaScript file to detect a feature alone. You can do … Read more

How to convert LTR website to a RTL Website – LTR to RTL?

CSS3 on MoreOnFew.com

I’m sure all of us want our websites to be visited and loved by people all over the world. However many a time our visitors could be from countries that follow RTL(Right-To-Left) script. And hence we might have to convert our website from LTR to RTL. By RTL script I mean scripts of languages such as … Read more

Understanding only-of-type CSS pseudo class selector

CSS3 on MoreOnFew.com

Let’s be honest, CSS sometimes can get a little tricky and confusing to understand. Especially with the onset of CSS3 and all these new CSS3 selectors and pseudo classes, it’s quite possible that many of us might still be trying to catch up with the new selectors. Well, only-of-type is one such new CSS3 pseudo … Read more

What are source maps in CSS and JavaScript?

CSS3 on MoreOnFew.com

With all the optimization techniques like bundling and minification etc getting important and popular it is good that we talk about Source Maps now. Think of this, once you bundle all the CSS files you have into one single file, how do you know which part of CSS was written in which file? To make … Read more

What are CSS Preprocessors?

CSS3 on MoreOnFew.com

A lot is being discussed about CSS Preprocessors in recent times. But then what are they? Is it another framework like Bootstrap? Well, the answer is No. It is not another CSS framework. Preprocessors in general are programs that take one type of data as an input and give out another type of data as … Read more