🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/onedrive

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/onedrive

Microsoft OneDrive integration via Microsoft Graph API — browse, upload (simple + resumable), download, move/copy, create folders, share, and inspect permissions across personal and OneDrive for Business drives. Supports delegated OAuth2 access tokens (wi

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/onedrive

OneDrive module for RobinPath.

Category Functions Auth License

Why use this module?

The onedrive module lets you:

  • listChildren
  • getItem
  • getItemByPath
  • createFolder
  • deleteItem

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/onedrive

Quick Start

1. Set up credentials

onedrive.setCredentials "your-credentials"

2. listChildren

onedrive.listChildren

Available Functions

FunctionDescription
onedrive.setCredentialsConfigure onedrive credentials.
onedrive.listChildrenlistChildren
onedrive.getItemgetItem
onedrive.getItemByPathgetItemByPath
onedrive.createFoldercreateFolder
onedrive.deleteItemdeleteItem
onedrive.moveItemmoveItem
onedrive.copyItemcopyItem
onedrive.uploadFileuploadFile
onedrive.downloadFiledownloadFile
onedrive.searchFilessearchFiles
onedrive.createSharingLinkcreateSharingLink
onedrive.listSharedWithMelistSharedWithMe
onedrive.getPermissionsgetPermissions
onedrive.getDriveInfogetDriveInfo
onedrive.listDriveslistDrives
onedrive.getRecentFilesgetRecentFiles
onedrive.getThumbnailsgetThumbnails
onedrive.uploadLargeFileuploadLargeFile

Examples

listChildren

onedrive.listChildren

getItem

onedrive.getItem

getItemByPath

onedrive.getItemByPath

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/onedrive";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  onedrive.setCredentials "your-credentials"
  onedrive.listChildren
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

onedrive

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts