sharepoint-static-content
v1.0.4
Published
This is a CLI based node library which takes a SharePoint list and extracts the content and images to be served on a static site.
Downloads
2
Readme
SharePoint Static Content
This is a CLI based node library which takes a SharePoint list and extracts the content and images to be served on a static site.
This allows SharePoint lists to be used as a rudimentary CMS system.
Install
npm install -g sharepoint-static-content
Run
npx sharepoint-static-content
Prerequisites
- SharePoint site (SharePoint Online only)
- SharePoint list
- Active Directory service principle (Username and Password for MSAL login)
- Active Directory App Registration with API permissions for "Sites.Read.All"
- Client Secret for App Registration
Environment Variables
This package requires these variables to be set first.
SSC_USERNAME="service principle username"
SSC_PASSWORD="service principle password"
SSC_CLIENT_ID="Azure AD app registration client id (application id)"
SSC_CLIENT_SECRET="Azure AD app registration client secret"
SSC_TENANT_ID="Azure AD tenant id"
SSC_SITE_ID="sharepoint site id"
SSC_LIST_ID="sharepoint list id"
SSC_FOLDER_PATH="./assets"
SSC_IMAGES_PATH="./assets/img"