0.0.1 • Published 2 years ago

drupal-api-client v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

drupal-api-client

A tiny, universal client for the Drupal.org API written in Typescript.

version license size download

A node.js module, which provides an object oriented wrapper for the Drupal.org API.

Features

  • Tiny < 2KB size gzip
  • Works in Node.js and in Browser
  • Built-in Typescript support

Installation 🔧

npm install -S drupal-api-client
or 

yarn add drupal-api-client

Usage ✨

Create the Drupal API client

// With ES5
var DrupalApi = require('drupal-api-client');

// With ES6
import DrupalApi from 'drupal-api-client';

// Initialize
var client = new DrupalApi();

client.getNodes().then((data) => {
    console.log(data)
})

Documentation

Can't find what you need in the readme? For more information and some available filtering options check out the official documentation: https://www.drupal.org/drupalorg/docs/apis/rest-and-other-apis