Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

directus-sdk-javascript

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directus-sdk-javascript

WIP - Directus SDK for JavaScript (Node and Browser)

  • 3.0.0-3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-12.9%
Maintainers
3
Weekly downloads
 
Created
Source

directus-sdk-javascript

Directus SDK for JavaScript (Node and Browser)

Directus Logo

NPM

Installation

Install the package via npm npm install directus-sdk-javascript

Usage

Require the RemoteInstance class (support for local instances coming soon)

const RemoteInstance = require('directus-sdk-javascript/remote');

const client = new RemoteInstance({
  url: 'http://instance.directus.io/api/1.1/',
  accessToken: [user-token] // optional, can be used without on public routes
});

The client returns a Promise which resolves the APIs JSON data on succes and rejects on error

client.getItems('projects')
  .then(res => console.log(res))
  .catch(err => console.log(err));

Check the official API docs for a complete overview of all endpoints and available methods

Keywords

FAQs

Package last updated on 03 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc