{"id":21653534,"url":"https://github.com/koltyakov/sp-screwdriver","last_synced_at":"2025-04-11T21:01:07.535Z","repository":{"id":17070256,"uuid":"79220149","full_name":"koltyakov/sp-screwdriver","owner":"koltyakov","description":"Adds missing and abstracts SharePoint APIs for transparent usage in Node.js applications","archived":false,"fork":false,"pushed_at":"2024-09-06T08:58:21.000Z","size":708,"stargazers_count":16,"open_issues_count":15,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-07T18:03:45.210Z","etag":null,"topics":["api","developer-tools","extentions","javascript","managed-metadata","nodejs","sharepoint","sharepoint-online","user-profiles-services"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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":"LICENSE","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-01-17T11:17:16.000Z","updated_at":"2024-12-20T13:40:15.000Z","dependencies_parsed_at":"2024-10-20T19:22:25.149Z","dependency_job_id":null,"html_url":"https://github.com/koltyakov/sp-screwdriver","commit_stats":{"total_commits":67,"total_committers":5,"mean_commits":13.4,"dds":0.5223880597014925,"last_synced_commit":"1035257bc1e8a9184c29a1d1881d36cd01586149"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fsp-screwdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fsp-screwdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fsp-screwdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koltyakov%2Fsp-screwdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koltyakov","download_url":"https://codeload.github.com/koltyakov/sp-screwdriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480434,"owners_count":21110936,"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","developer-tools","extentions","javascript","managed-metadata","nodejs","sharepoint","sharepoint-online","user-profiles-services"],"created_at":"2024-11-25T08:18:56.670Z","updated_at":"2025-04-11T21:01:07.307Z","avatar_url":"https://github.com/koltyakov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Screwdriver for SharePoint\n\n[![NPM](https://nodei.co/npm/sp-screwdriver.png?mini=true\u0026downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/sp-screwdriver/)\n\n[![npm version](https://badge.fury.io/js/sp-screwdriver.svg)](https://badge.fury.io/js/sp-screwdriver)\n[![Downloads](https://img.shields.io/npm/dm/sp-screwdriver.svg)](https://www.npmjs.com/package/sp-screwdriver)\n[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/sharepoint-node/Lobby)\n\n![logo](https://github.com/koltyakov/sp-screwdriver/blob/master/doc/img/screwdriver-logo.png?raw=true)\n\n\u003e Adds missing and abstracts SharePoint APIs for transparent usage in Node.js applications\n\nSharePoint REST API is cool, but there are cases, then it's limited or even absent (e.g. MMD is not reachable trough REST API).\n\nThis library implements (or at least tries) some vital capabilities by wrapping legacy but still working SOAP services and by hacking HTTP requests mimicing JSOM/CSOM.\n\n## New in version 1.0.0\n\n- Code base is completely migrated to TypeScript.\n- node-sp-auth-config is integrated to the library.\n- Integration tests are added.\n\n## Supported SharePoint versions\n\n- SharePoint Online\n- SharePoint 2013\n- SharePoint 2016\n\n## Usage\n\n### Install\n\n```bash\nnpm install sp-screwdriver --save\n```\n\nor\n\n```bash\nyarn add sp-screwdriver\n```\n\n### Minimal setup\n\n```javascript\nimport { Screwdriver, IScrewdriverSettings } from 'sp-screwdriver';\n\nconst settings: IScrewdriverSettings = {\n  // ...\n};\n\nconst screw = new Screwdriver(settings);\n\n// Wizard mode asks for credentials\nscrew.wizard().then(() =\u003e {\n\n  screw.ups.getPropertiesFor({\n    accountName: 'i:0#.f|membership|username'\n  }).then(result =\u003e {\n    // ...\n  }).catch(console.log);\n\n  screw.mmd.getAllTerms({\n    serviceName: 'Taxonomy_5KSgChEZ9j15+7UVInQNRQ==',\n    termSetId: '8ed8c9ea-7052-4c1d-a4d7-b9c10bffea6f'\n  }).then(result =\u003e {\n    // ...\n  }).catch(console.log);\n\n});\n```\n\nalternative:\n\n```javascript\nimport { Screwdriver } from 'sp-screwdriver';\n\nconst screw = new Screwdriver(); // Default settings\nscrew.init(); // private.json already should be on the disk\n              // or raw auth parameters should be provided\n\nscrew.ups.getUserPropertyByAccountName({\n  accountName: 'i:0#.f|membership|username',\n  propertyName: 'SPS-Birthday'\n}).then(result =\u003e {\n  done();\n}).catch(done);\n```\n\n## APIs\n\n### User Profiles Service\n\n- getUserProfileByName (SOAP, /_vti_bin/UserProfileService.asmx)\n- modifyUserPropertyByAccountName (SOAP, /_vti_bin/UserProfileService.asmx)\n- getUserPropertyByAccountName (SOAP, /_vti_bin/UserProfileService.asmx)\n- getUserProfilePropertyFor (REST, /_api/sp.userprofiles.peoplemanager/getpropertiesfor)\n- getPropertiesFor (REST, /_api/sp.userprofiles.peoplemanager/getuserprofilepropertyfor)\n- setSingleValueProfileProperty (HTTP, /_vti_bin/client.svc/ProcessQuery)\n- setMultiValuedProfileProperty (HTTP, /_vti_bin/client.svc/ProcessQuery)\n\n### Manage Metadata Service (Taxonomy)\n\n- getTermSets (SOAP, /_vti_bin/TaxonomyClientService.asmx)\n- getChildTermsInTermSet (SOAP, /_vti_bin/TaxonomyClientService.asmx)\n- getChildTermsInTerm (SOAP, /_vti_bin/TaxonomyClientService.asmx)\n- getTermsByLabel (SOAP, /_vti_bin/TaxonomyClientService.asmx)\n- getKeywordTermsByGuids (SOAP, /_vti_bin/TaxonomyClientService.asmx)\n- addTerms (SOAP, /_vti_bin/TaxonomyClientService.asmx)\n- getAllTerms (HTTP, /_vti_bin/client.svc/ProcessQuery)\n- setTermName (HTTP, /_vti_bin/client.svc/ProcessQuery)\n- deprecateTerm (HTTP, /_vti_bin/client.svc/ProcessQuery)\n\n### Versions\n\n#### Document versions\n\n- getVersions (SOAP, /_vti_bin/versions.asmx)\n- restoreVersion (SOAP, /_vti_bin/versions.asmx)\n- deleteVersion (SOAP, /_vti_bin/versions.asmx)\n- deleteAllVersions (SOAP, /_vti_bin/versions.asmx)\n\n#### Item versions\n\n- getVersionCollection (SOAP, /_vti_bin/lists.asmx)\n\n#### Item property bags\n\n- setItemProperties (HTTP, /_vti_bin/client.svc/ProcessQuery)\n\n### Possible SOAP services to implement\n\n- Alerts (/_vti_bin/alerts.asmx)\n- Authentication Web service (/_vti_bin/Authentication.asmx)\n- BDC Web Service (/_vti_bin/businessdatacatalog.asmx)\n- CMS Content Area Toolbox Info Web service (/_vti_bin/contentAreaToolboxService.asmx)\n- Copy Web service (/_vti_bin/Copy.asmx)\n- Document Workspace Web service (/_vti_bin/DWS.asmx)\n- Excel Services Web service (/_vti_bin/ExcelService.asmx)\n- Meetings Web service (/_vti_bin/Meetings.asmx)\n- People Web service (/_vti_bin/People.asmx)\n- Permissions Web service (/_vti_bin/Permissions.asmx)\n- Published Links Web service (/_vti_bin/publishedlinksservice.asmx)\n- Publishing Service Web service (/_vti_bin/PublishingService.asmx)\n- Search Web service (/_vti_bin/search.asmx)\n- SharePoint Directory Management Web service (/_vti_bin/sharepointemailws.asmx)\n- Sites Web service (/_vti_bin/sites.asmx)\n- Search Crawl Web service (/_vti_bin/spscrawl.asmx)\n- Users and Groups Web service (/_vti_bin/UserGroup.asmx)\n- User Profile Change Web service (/_vti_bin/userprofilechangeservice.asmx)\n- User Profile Web service (/_vti_bin/userprofileservice.asmx)\n- Views Web service (/_vti_bin/Views.asmx)\n- Web Part Pages Web service (/_vti_bin/webpartpages.asmx)\n- Webs Web service (/_vti_bin/Webs.asmx)\n- Workflow Web service (/_vti_bin/workflow.asmx)\n\n[...](https://msdn.microsoft.com/en-us/library/office/bb862916(v=office.12).aspx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoltyakov%2Fsp-screwdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoltyakov%2Fsp-screwdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoltyakov%2Fsp-screwdriver/lists"}