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

@robinpath/box

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/box

Box Content API v2.0 — files, folders, shared links, search. Uses the encrypted credential vault (OAuth2 access token).

latest
npmnpm
Version
0.3.0
Version published
Maintainers
4
Created
Source

@robinpath/box

Box module for RobinPath.

Category Functions Auth License

Why use this module?

The box module lets you:

  • listFolderItems
  • getFolderInfo
  • createFolder
  • deleteFolder
  • getFileInfo

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

Installation

robinpath add @robinpath/box

Quick Start

1. Set up credentials

box.setCredentials "your-credentials"

2. listFolderItems

box.listFolderItems

Available Functions

FunctionDescription
box.setCredentialsConfigure box credentials.
box.listFolderItemslistFolderItems
box.getFolderInfogetFolderInfo
box.createFoldercreateFolder
box.deleteFolderdeleteFolder
box.getFileInfogetFileInfo
box.downloadFiledownloadFile
box.deleteFiledeleteFile
box.copyFilecopyFile
box.moveFilemoveFile
box.uploadFileuploadFile
box.searchContentsearchContent
box.createSharedLinkcreateSharedLink
box.getSharedLinkgetSharedLink
box.listCollaborationslistCollaborations
box.addCollaborationaddCollaboration
box.getUsergetUser
box.updateFileInfoupdateFileInfo
box.lockFilelockFile

Examples

listFolderItems

box.listFolderItems

getFolderInfo

box.getFolderInfo

createFolder

box.createFolder

Integration with RobinPath

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

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

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

Full API Reference

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

License

MIT

Keywords

box

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