
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
storyblok-node-client
Advanced tools
This client will provide you some helpers for the Storyblok publishing API.
This repository has been inspired by https://github.com/schornio/node-storyblok. Big thanks to Thomas Schorn for this awesome package.
npm install storyblok-node-client
StoryblokParameters
config Object
privateToken String, The private token you can find in your space dashboard at https://app.storyblok.comcache Object
type String, filesystem or memorypath String, required if you use filesystem as typeendpoint optional)Example
// 1. Require the Storyblok node client
const StoryblokClient = require('storyblok-node-client');
// 2. Initialize the client with the private key
// from your space dashboard at https://app.storyblok.com
let Storyblok = new StoryblokClient({
privateToken: 'xf5dRMMjltLzKOcNgMaU9Att'
});
The Storyblok nodejs client comes with a caching mechanism.
When initializing the Storyblok client you can define a cache provider for caching the requests on the filesystem or in memory.
To clear the cache you can call Storyblok.flushCache();.
// For a filesystem cache the path parameter is mandatory
let Storyblok = new StoryblokClient({
privateToken: 'xf5dRMMjltLzKOcNgMaU9Att',
cache: {
type: 'filesystem',
path: './public/datastorage/'
}
});
// For the memory cache only the type paramter is required
let Storyblok = new StoryblokClient({
privateToken: 'xf5dRMMjltLzKOcNgMaU9Att',
cache: {
type: 'memory'
}
});
Storyblok#getParameters
[return] Promise, Object responsepath String, Path (can be stories, stories/*, tags, datasources, links)options Object, Options can be found in the API documentation.Example
Storyblok
.get('stories/home', {
version: 'draft'
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});
Storyblok#flushCacheParameters
[return] Object, returns the Storyblok clientExample
Storyblok.flushCache();
Fork me on Github
FAQs
Storyblok API interface for Node.js (4+)
The npm package storyblok-node-client receives a total of 2 weekly downloads. As such, storyblok-node-client popularity was classified as not popular.
We found that storyblok-node-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.