Installation
Client-Side
Include Local Scripts
<script src="https://yourhost.com/subsite/SiteAssets/js/sprestlib.js"></script>
- IE11 support requires a Promises polyfill as well (included in the
libs
folder)
Include Bundle Script
<script src="https://yourhost.com/subsite/SiteAssets/js/sprestlib.bundle.js"></script>
sprestlib.bundle.js
includes all required libraries (SpRestLib + Promises)
<script src="https://yourhost.com/subsite/SiteAssets/js/sprestlib-ui.bundle.js"></script>
sprestlib-ui.bundle.js
includes all required libraries plus UI (SpRestLib and SpRestLib-UI + jQuery and Promises)
Use CDN
<script src="https://cdn.jsdelivr.net/gh/gitbrent/sprestlib@1.8.0/dist/sprestlib.min.js"></script>
Install With Bower
bower install sprestlib
Node.js
npm install sprestlib
var sprLib = require("sprestlib");
- Desktop: Compatible with Electron applications.
See Library Integration for more on using Angular, React, etc.