@directus/sdk
    TypeScript icon, indicating that this package has built-in type declarations

    9.0.0-rc.86 • Public • Published

    Directus JS SDK

    Installation

    npm install @directus/sdk
    

    Usage

    import { Directus } from '@directus/sdk';
    
    const directus = new Directus('https://api.example.com/');
    
    const items = await directus.items('articles').readOne(15);
    console.log(items);
    import { Directus } from '@directus/sdk';
    
    const directus = new Directus('https://api.example.com/');
    
    directus
    	.items('articles')
    	.readOne(15)
    	.then((item) => {
    		console.log(item);
    	});

    Docs

    See the docs

    Install

    npm i @directus/sdk

    DownloadsWeekly Downloads

    1,380

    Version

    9.0.0-rc.86

    License

    MIT

    Unpacked Size

    1.3 MB

    Total Files

    145

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar