{"id":21655945,"url":"https://github.com/koltyakov/node-sharepoint-examples","last_synced_at":"2025-04-11T21:30:54.778Z","repository":{"id":73404581,"uuid":"112597821","full_name":"koltyakov/node-sharepoint-examples","owner":"koltyakov","description":"Node.js SharePoint Examples","archived":false,"fork":false,"pushed_at":"2017-12-01T08:41:28.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T17:22:56.075Z","etag":null,"topics":["api","example","jsom","nodejs","rest","sharepoint"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koltyakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-30T10:24:21.000Z","updated_at":"2019-08-29T03:55:54.000Z","dependencies_parsed_at":"2023-07-08T08:16:08.692Z","dependency_job_id":null,"html_url":"https://github.com/koltyakov/node-sharepoint-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fnode-sharepoint-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fnode-sharepoint-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fnode-sharepoint-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fnode-sharepoint-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koltyakov","download_url":"https://codeload.github.com/koltyakov/node-sharepoint-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248482857,"owners_count":21111393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","example","jsom","nodejs","rest","sharepoint"],"created_at":"2024-11-25T08:37:53.320Z","updated_at":"2025-04-11T21:30:54.768Z","avatar_url":"https://github.com/koltyakov.png","language":"TypeScript","readme":"# Node.js SharePoint Examples\r\n\r\nExample shows the setup of a project for using SharePoint technologies in Node.js application (on the server, not the browser).\r\nSetup includes:\r\n- TypeScript configuration\r\n- TSLint configuration\r\n- VS Code TypeScript debug parameters\r\n- Technologies:\r\n  - [PnP JS Core](https://github.com/SharePoint/PnP-JS-Core) in Node.js context\r\n  - JSOM (JavaScript Object Model) for Node.js\r\n  - Raw REST with [sp-request](https://github.com/s-kainet/sp-request)\r\n  - Authentication with [node-sp-auth](https://github.com/s-kainet/node-sp-auth) and [node-sp-auth-config](https://github.com/koltyakov/node-sp-auth-config)\r\n    - SharePoint 2013, 2016:\r\n      - Addin only permissions\r\n      - User credentials through the http ntlm handshake\r\n      - Form-based authentication (FBA)\r\n      - Forefront TMG authentication\r\n    - SharePoint Online:\r\n      - Addin only permissions\r\n      - SAML based with user credentials\r\n      - ADFS user credentials (works with both SharePoint on-premise and Online)\r\n    - On demand authentication. Uses interactive browser session for asking credentials. Supports third-party authentication providers for SharePoint Online and SharePoint on-premise.\r\n\r\n## Clone the repo\r\n\r\n```bash\r\ngit clone https://github.com/koltyakov/node-sharepoint-examples \u0026\u0026 cd node-sharepoint-examples\r\n```\r\n\r\n## Restore dependencies\r\n\r\n```bash\r\nnpm install\r\n```\r\n\r\n## Examples\r\n\r\n### Run with typescript\r\n\r\n#### sp-request\r\n\r\n```bash\r\nnpm run ts:run:request\r\n```\r\n\r\n#### sp-pnp-node\r\n\r\n```bash\r\nnpm run ts:run:pnp\r\n```\r\n\r\n#### sp-jsom-node\r\n\r\n```bash\r\nnpm run ts:run:jsom\r\n```\r\n\r\n## Build\r\n\r\n### Linting\r\n\r\n```bash\r\nnpm run tslint\r\n```\r\n\r\n### Transpile\r\n\r\n```bash\r\nnpm run build\r\n```\r\n\r\n### Debug\r\n\r\nIn VS Code, open a .ts to debug, place brake point and hit `F5`.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoltyakov%2Fnode-sharepoint-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoltyakov%2Fnode-sharepoint-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoltyakov%2Fnode-sharepoint-examples/lists"}