DevelopersClientsJavascript
Clients

JavaScript Client

For developers who want to extend the functionality of Spacedrive, this library allows easy development of Extensions, providing full access to Spacedrive's functionality.

Installation

$ npm i @spacedrive/client

Initialize the Spacedrive client

import spacedrive from '@spacedrive/client';

spacedrive.start();

Add a location

const location = await spacedrive.location.create('/Users/jamie/Documents');

location.scan();