This repository contains sample using pnp-js library with nodejs
TypeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
.gitignore
README.md
index.ts
package-lock.json
package.json
settings.sample.ts
tsconfig.json
tslint.json

README.md

Sample for running sp-pnp-js (PnP-JS-Core) from nodejs environment

This sample contains minimal code required to run sp-pnp-js from nodejs. Module node-sp-auth used as helper module for obtaining authentication headers and attaching to the http request.

How to run:

  1. Clone repository
  2. Rename settings.sample.ts into settings.ts
  3. Update settings.ts with appropriate values (credentials in a format, supported by node-sp-auth, for help please take a look at the credentialOptions param)
  4. npm install
  5. npm run build
  6. You will see your web title taken with help of sp-pnp-js and node-sp-auth as authentication provider