This repository contains a reusable TypeScript library to make interacting with SharePoint from client applications simple. It is also distributed as a npm and bower package for easy integration into you applications. This is a "sub" repository for the PnP repository.
Please use http://aka.ms/OfficeDevPnP for getting latest information around the whole Office 365 Developer Patterns and Practices program.
NPM
Add the npm package to your project
npm install sp-pnp-js --save dev
Import the root object and start interacting with the SharePoint REST API
import pnp from "sp-pnp-js"
...
pnp.sp.web.select("Title").get().then(() => ...);
Bower
Add the package from bower
bower install sp-pnp-js
We have active Yammer and Gitter communities dedicated to this library, please join the conversation to ask questions. If you find an issue with the library, please report it.
Please see the wiki for tips on getting started, configuring your development environment, and using the library.
This project's contributors include Microsoft and community contributors. Work is done as as open source community project.
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.