Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
node-directus-client
Advanced tools
A JavaScript client for the Directus API
This library is under active development. Breaking changes can occur at every patch.
This libraries abstracts the interaction with the Directus CMS API. It enables your Node.js app to request specific resources from a Directus instance.
To use the library, install it with npm:
npm install --save node-directus-client
Then require it in your application script:
const DirectusClient = require('node-directus-client')
The module is a class, so you'll have to create a new instance of the client bound to the endpoint and access token of your Directus instance.
const cms = new DirectusClient({
url: 'https://example.com/api/1/',
key: 'abcdef12345'
});
Every method (see below) is asynchronous and can be used with callbacks as well as promises.
cms.tables()
.then((res) => {
console.log(res);
});
cms.tables(function(err, res) {
console.log(res);
});
The methods mimic the original Directus API endpoints as closely as possible.
cms.tables([raw = false, callback])
Gets all available tables.
raw
: (bool) return the data as an Array of names or original Directus responseFAQs
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
The npm package node-directus-client receives a total of 0 weekly downloads. As such, node-directus-client popularity was classified as not popular.
We found that node-directus-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.