@mv-data-core/sdk
v9.12.0
Published
The official MV Datacore SDK for use in JavaScript!
Downloads
1
Readme
Directus JS SDK
Installation
npm install @directus/sdk
Usage
import { Directus } from '@directus/sdk';
const directus = new Directus('http://directus.example.com');
const items = await directus.items('articles').readOne(15);
console.log(items);
import { Directus } from '@directus/sdk';
const directus = new Directus('http://directus.example.com');
directus
.items('articles')
.readOne(15)
.then((item) => {
console.log(item);
});
Docs
See the docs