PnPJS is a fluent JavaScript API for consuming SharePoint and Office 365 REST APIs in a type-safe way. You can use it with SharePoint Framework, Nodejs, or JavaScript projects. This an open source initiative complements existing SDKs provided by Microsoft offering developers another way to consume information from SharePoint and Office 365.
Please use http://aka.ms/sppnp for the latest updates around the whole SharePoint Patterns and Practices (PnP) initiative.
If you are moving from sp-pnp-js please review the transition guide
Please see the Getting Started guide in the main documentation.
Please review the documentation for the PnPJS libraries. This site is updated with each release. If cannot find what you need, please let us know by logging an documentation request.
The following packages comprise the Patterns and Practices client side libraries.
Provides shared functionality across all pnp libraries
Provides a way to manage configuration within your application
Provides functionality to query the Microsoft Graph
Light-weight, subscribable logging framework
Provides functionality enabling the @pnp libraries within nodejs
Provides shared odata functionality and base classes
Rollup library of core functionality, mimics sp-pnp-js
Provides a fluent api for working with SharePoint REST
Provides functionality for working within SharePoint add-ins
Provides a fluent API for querying taxonomy information
Handles generic communication with client.svc endpoint, removing SP.*.js dependencies
This project's contributors include Microsoft and community contributors. Work is done as as open source community project.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
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.