A tiny, universal client for the Drupal.org API written in Typescript.
A node.js module, which provides an object oriented wrapper for the Drupal.org API.
- Tiny < 2KB size gzip
- Works in Node.js and in Browser
- Built-in Typescript support
npm install -S drupal-api-client
or
yarn add 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)
})
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