gd-sprest (v9.8.2) is a TypeScript/JavaScript library for interacting with the SharePoint 2013 and SharePoint Online REST APIs. It provides a promise-based API with full TypeScript definitions, enabling developers to easily perform CRUD operations on SharePoint entities (lists, files, users, etc.) from both SPFx solutions and browser console. Unlike pnp-js, it is designed for use in restricted environments and supports live debugging via browser console. The library is actively maintained with regular releases and also offers NuGet packages for classic SharePoint solutions.
npm install gd-sprestNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches the current web and retrieves top 10 items from a list by title using async/await.
Use <script src='https://unpkg.com/gd-sprest@9.8.2/dist/gd-sprest.min.js'></script>
Replace `$REST.Web().Lists('title')` with `new List('title', { WebUrl: url })`Ensure the script runs only on authenticated SharePoint pages.
Run the script only on SharePoint pages where the user is logged in; ensure the page origin is allowed in SPO.
Check the SharePoint site URL; use `$REST.Web({url: 'https://tenant.sharepoint.com/sites/mysite'})` explicitly.Run `npm install --save-dev gd-sprest` and ensure `node_modules/gd-sprest` exists.
No dependency data recorded yet.