
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
Beta release only. It is not recommended for use in production environments.
This library provides a simple interface to interact with a Databricks Filesystem (DBFS). It enables users to perform a variety of file system operations such as getting the status of a file or directory, listing contents, creating and deleting directories, uploading files, and managing streams.
npm install dbfs-api
This npm library is currently in beta release. It is not recommended for use in production environments. An official stable version will be released soon.
Here's how you can use the various functions provided by the library:
import { connect } from 'dbfs-api';
await connect({ url: 'DBFS_API_URL', token: 'YOUR_ACCESS_TOKEN' });
import { getStatus } from 'dbfs-api';
const status = await getStatus('path/to/file_or_directory');
import { getList } from 'dbfs-api';
const contents = await getList('path/to/directory');
import { createDirectory } from 'dbfs-api';
await createDirectory('path/to/new/directory');
import { deleteDirectory } from 'dbfs-api';
await deleteDirectory('path/to/directory', true); // Set recursive flag as needed
import { deleteFile } from 'dbfs-api';
await deleteFile('path/to/file');
import { openStream } from 'dbfs-api';
const streamHandle = await openStream('path/to/file', true); // Set overwrite flag as needed
import { addBlock } from 'dbfs-api';
await addBlock(streamHandle, 'dataChunk');
import { closeStream } from 'dbfs-api';
await closeStream(streamHandle);
import { uploadFile } from 'dbfs-api';
await uploadFile('path/to/file', 'base64EncodedContent', false); // Set overwrite flag as needed
For support, please open an issue on the GitHub repository page.
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
DBFS REST API wrapper for Node
We found that dbfs-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.