Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
directus-sdk-node
Advanced tools
For Node driven apps, use this SDK to more easily communicate with your Directus managed database through the API.
npm install directus-sdk-node
const client = new DirectusSDK('user-token', {
// the sub-domain in your instance url
instanceKey: 'user--instance'
});
client.getEntries('articles', (err, res) => {
if(err) throw err;
res.forEach((article) => {
console.log(article.title);
});
});
const client = new DirectusSDK('user-token', {
baseUrl: 'http://yoursite.com/api',
apiVersion: 1 // Optional - default 1
});
client.getEntries('articles', (err, res) => {
if(err) throw err;
res.forEach((article) => {
console.log(article.title);
});
});
All methods can be used with either callbacks or promises
For more info on what parameters are supported: check the official Directus API docs
client.getTables([Function callback]);
client.getTable(String table, [Function callback]);
client.getColumns(String table, [Object params, Function callback]);
client.getColumn(String table, String column, [Function callback]);
client.getEntries(String table, [Object params, Function callback]);
client.getEntry(String table, Number id, [Object params, Function callback]);
client.createEntry(String table, Object data, [Function callback]);
client.updateEntry(String table, Number id, Object data, [Function callback]);
client.deleteEntry(String table, Number id, [deleteFromDB: Boolean = false, Function callback]);
client.getUser([Object params, Function callback]);
client.getUser(Number id, [Object params, Function callback]);
client.createUse(Object data, [Function callback]);
client.updateUser(Number id, Object data, [Function callback]);
client.deleteUser(Number id, [deleteFromDB: Boolean = false, Function callback]);
client.getGroup([Object params, Function callback]);
client.getGroup(Number id, [Object params, Function callback]);
client.getGroupPrivileges(Number id, [Function callback]);
client.getFile([Object params, Function callback]);
client.getFile(Number id, Object params, Function callback]);
client.createFile(Object data, [Function callback]);
client.updateFile(Number id, Object data, [Function callback]);
client.deleteFile(Number id, [deleteFromDB: Boolean = false, Function callback]);
client.getSettings([Function callback]);
client.getSettingsByCollection(String collectionName, [Function callback]);
FAQs
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 directus-sdk-node receives a total of 0 weekly downloads. As such, directus-sdk-node popularity was classified as not popular.
We found that directus-sdk-node 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.