npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ais-sp-pnp-js

v1.0.4

Published

A reusable JavaScript library targeting SharePoint client-side development. https://github.com/OfficeDev/PnP-Sites-Core/ || https://github.com/AgileIS/PnP-JS-Core -- With some changes and updates used in https://github.com/AgileIS/ais-sp-js-deployment

Downloads

36

Readme

Office 365 Developer Patterns and Practices

JavaScript Core Component

npm version Join the chat at https://gitter.im/OfficeDev/PnP-JS-Core Downloads bitHound Overall Score

The Patterns and Practices JavaScript Core Library was created to help developers by simplifying common operations within SharePoint. This is aligned with helping folks transitioning into client side development in support of the upcoming SharePoint Framework. Currently it contains a fluent API for working with the full SharePoint REST API as well as utility and helper functions. This takes the guess work out of creating REST requests, letting developers focus on the what and less on the how.

pnp in action

Please use http://aka.ms/OfficeDevPnP for getting latest information around the whole Office 365 Developer Patterns and Practices program.

Get Started

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

API Documentation

Explore the API documentation.

These pages are generated from the source comments as part of each release. We are always looking for help making these resources better. To make updates, edit the comments in the source and submit a PR against the dev branch. We will merge it there and refresh the pages as part of each release. Updates made directly to the gh-pages branch will be overwritten.

Samples Add-In

Checkout a SharePoint hosted Add-In containing samples on using the library from both a SharePoint hosted add-in as well as a script editor web part. This will allow you to execute the samples as well as intract with the API.

Get Help

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.

Wiki

Please see the wiki for tips on getting started, configuring your development environment, and using the library.

Authors

This project's contributors include Microsoft and community contributors. Work is done as as open source community project.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

"Sharing is Caring"

Disclaimer

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.