Socket
Book a DemoInstallSign in
Socket

drupal-api-client

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drupal-api-client

Simple JS client to use Drupal.org API

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

drupal

FAQs

Package last updated on 27 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts