Javascript

Troubleshooting Node.js Installation: Common Issues and Fixes

Seven real installation problems people hit with Node.js and npm, and the actual fix for each — version conflicts, permission errors, SSL/proxy issues, and the Windows-specific build-tools error that trips up more people than any of the others. In this post: Conflicting versions · Permission errors (EACCES) · SSL certificate errors · Proxy and firewall […]

Troubleshooting Node.js Installation: Common Issues and Fixes Read More »

NPM Link and Gulp: Understanding the Power of Local Development

npm link creates a symlink between a globally-linked local package and another project, so you can develop a package and test it live in a consuming project without publishing it to the registry first. In this post: Worked example: building a custom Gulp plugin · The gotcha to know about · Unlinking and other package

NPM Link and Gulp: Understanding the Power of Local Development Read More »

How to Avoid List Throttling in SharePoint

If you’ve ever worked with large SharePoint lists, you’ve probably encountered the dreaded list throttling issue. Suddenly, your queries stop working, your scripts throw errors, and users start complaining. But what exactly is list throttling? Why does it happen? And most importantly, how can you avoid it? In this article, we’ll break down everything you

How to Avoid List Throttling in SharePoint Read More »

Regular Expressions (Regex) : Quick Guide

Regular Expressions (commonly known as Regex) might seem like an intimidating topic at first, but once you get the hang of it, they become an indispensable tool for text processing, validation, and searching. Whether you’re a developer, data analyst, or system administrator, regex can help you manipulate and extract data with precision and efficiency. In

Regular Expressions (Regex) : Quick Guide Read More »

Gulp: Automate Your Workflow Like a Pro

What is Gulp? Gulp is an open-source JavaScript task runner that automates repetitive tasks in development workflows. It helps developers handle tasks like minification, compilation, linting, testing, and browser reloading efficiently. Unlike other task runners, Gulp uses a code-over-configuration approach, making it more readable and easier to set up. It processes tasks using Node.js streams,

Gulp: Automate Your Workflow Like a Pro Read More »

Methods on how to Add Attachments to SharePoint List

When working with SharePoint lists, you might find yourself in a situation where you need to attach files to a list item. This is especially useful for document approvals, storing additional details, or just keeping relevant files together. Thankfully, SharePoint provides multiple ways to achieve this, including the SharePoint REST API, PnPjs, and PnP PowerShell.

Methods on how to Add Attachments to SharePoint List Read More »

SharePoint REST API File Uploads Using JavaScript and PnPjs

Two ways to upload a file to a SharePoint document library via code — raw REST calls, or PnPjs — plus what changes once the file is big enough that a single request isn’t the right approach anymore. In this post: Option 1: raw REST API · Option 2: PnPjs · Large files: chunked uploads

SharePoint REST API File Uploads Using JavaScript and PnPjs Read More »

Remove All Permissions in a SharePoint Site Collection

Imagine you’ve just completed a major project in SharePoint, and now it’s time to secure the site so that only you have access. Maybe you’re preparing a site for migration, shutting it down, or ensuring compliance by restricting access to sensitive data. Whatever the case, locking down a SharePoint site collection can be crucial. In

Remove All Permissions in a SharePoint Site Collection Read More »

SharePoint Data Handling with PnP Batching Queries

Updating a thousand SharePoint list items one request at a time is slow and burns through API throttling limits fast. PnPjs batching bundles multiple operations into a single HTTP call instead — here’s the syntax for both the older and current versions of the library, and the real limit worth knowing before you rely on

SharePoint Data Handling with PnP Batching Queries Read More »