Find out how to hash and check passwords in JavaScript with the bcrypt libraryThe bcrypt npm package is one of the most used packages to work with passwords in JavaScript.This is security 101, but it’s worth mentioning for new developers: you never store a password in plain text in the ...
clutters the JavaScript bundle with all the functions of lodash library, while you use only_.uniq. The sections4.1 Cherry pick functionsand4.2 ES2015 modules enable tree shakingdescribe how to include only the used functions into the bundle. ...
useDependabotto keep those dependencies up-to-date. The result is that at any given moment, most of the client-side dependencies on any of our active projects are up-to-date, and the ones that aren’t are not far behind. Compare this to including a library via a hard-coded CDN URL...
There was a time whenXMLHttpRequestwas used to make API requests. It didn’t include Promises, and it didn’t make for clean JavaScript code. Using jQuery, you could use the cleaner syntax ofjQuery.ajax(). Now, JavaScript has its own built-in way to make API requests. This is the Fe...
Using JavaScript map() Function for String Processing Another common use for themap()function is to process a series of strings. The strings can be concatenated or reformatted. The example below processes an array representing a queue of customers. For each person, themap()function generates a...
Skip to main content We use optional cookies to improve your experience on our websites, such as through social media connections, and to display personalized advertising based on your online activity. If you reject optional cookies, only cookies necessary to provide you the services will be used...
jQuery stepped up, providing an ajax function that became a popular substitute. With the Fetch API, JavaScript enables request and response handling natively, without the need for an external library. This approach also opens up requests and responses to all of the rich features of JavaScript, ...
In this article, we will see how to use the js PDF library for converting HTML to PDF in JavaScript. It uses a popular and easy-to-use client-side library togenerate PDF from HTML. Let’s step forward to see more in this tutorial. ...
Creating an Isomorphic/Universal/Portable JavaScript Library Documentation And more! Not all libraries need all of this, but many would benefit from having this. If you're curious, check out the (free) lesson series on egghead.io:How to Write a JavaScript Library. Start writing more open sourc...
take a look at setting up Vue in an HTML file, as it's the simplest setup and introduction. Those who have only ever used a library like jQuery will be most familiar with this method. If you've already used React or another JavaScript framework, feel free to skip to the next section...