Tag: Javascript

Recent Post

Show Desktop Notifications with JavaScript in the Browser

Using the Notificaitons API, you can send system-level notifications to a user.

Build a REST API with Node.js and Express

Express provides a simple sytnax for creating a REST API in Node.js.

Get the size of a file in JavaScript

First get the data in blob or blob-like format and then access its size property.

How to Get the File Extension from a Filename String

You can combine lastIndexOf() and slice() to get the file extension.

Download Progress with JavaScript’s Fetch Function

Create a download indicator by reading the body of the response.

Set an Expiration Date and Time for a localStorage Item

There is no native expiration option but it can be implemented using timestamps.

Store and Retrieve a Function in localStorage

Pass a function through localStorage using the Function constructor object.

JSON file to CSV download with vanilla JavaScript

Allow your users to download any fetchable JSON file in CSV format.

Social Media Share Buttons with Vanilla JavaScript

Share with vanilla JavaScript by constructing URL requests to social media APIs.

Conditionally load a JavaScript file

By creating a new JavaScript file from scratch or reappend an existing one.