drupal-api-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i drupal-api-client

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

28.1 kB

Total Files

36

Last publish

Collaborators

  • davidebruner