https://github.com/aymkdn/sharepointplus
SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.
https://github.com/aymkdn/sharepointplus
javascript sharepoint
Last synced: about 1 year ago
JSON representation
SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.
- Host: GitHub
- URL: https://github.com/aymkdn/sharepointplus
- Owner: Aymkdn
- License: lgpl-3.0
- Created: 2012-03-15T09:35:38.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T07:47:52.000Z (almost 4 years ago)
- Last Synced: 2025-03-29T16:07:21.577Z (about 1 year ago)
- Topics: javascript, sharepoint
- Language: JavaScript
- Homepage: http://aymkdn.github.io/SharepointPlus/
- Size: 2.41 MB
- Stars: 224
- Watchers: 40
- Forks: 58
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SharepointPlus
[](http://isitmaintained.com/project/aymkdn/sharepointplus "Average time to resolve an issue")
[](http://isitmaintained.com/project/aymkdn/sharepointplus "Percentage of issues still open")
[](https://www.jsdelivr.com/package/npm/sharepointplus)
SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.
## Documentation
Browse the [online documentation here](https://aymkdn.github.io/SharepointPlus/).
## Quick Start
### Node Environment
```sh
npm install sharepointplus
```
Then:
```javascript
import $SP from 'sharepointplus'
```
Please, make sure to read [the documentation](https://aymkdn.github.io/SharepointPlus/) to optimize your bundle size.
### Browser Only
To directly use it in a browser:
```html
```
## Usage / Examples
Update all items with an "Amount" value bigger than 1000:
```javascript
$SP().list('My List Name').update({
Title:"Too expensive"
}, {
where:"Amount > 1000"
})
.then(function(res) {
alert(res.passed.length+" items successfully updated!");
});
```
Get all items with "Requestor" as the current user and with "Default Color" is "pink":
```javascript
$SP().list('ListName').get({
fields:"Title,Size",
where:"Requestor = '[Me]' AND Default_x0020_Color = 'pink'",
orderby:"Size DESC",
json:true
})
.then(function(data) {
data.forEach(function(d) {
console.log("Model = "+d.Title+" (size: "+d.size+")";
})
});
```
## More information
Please visit the [online documentation](https://aymkdn.github.io/SharepointPlus/) to know more.