Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
streamshield
Advanced tools
The Streamshield node client library is intended to speed up building plugins for applications that are built with node. The intention is for it to help speed up building plugins for other applications that are built with node, for example CMS's.
npm i streamshield
or
yarn add streamshield
import Streamshield from 'streamshield'
const ss = new Streamshield()
ss.setApiKey('<your API access key>', '<your API secret key'>)
// First time registration
await ss.register('My CMS', 'v1.0.0', 'v1.0.0') // e.g. CMS version and your plugin version
// Send content for moderation
const meta = {
domain: '<domain registered in Streamshield>',
scheme: 'https',
username: '<the author of the content>',
ip_address: '<the ip address of the author, if known>',
content_path: 'https://yourdomain.com/path/to/content',
action: 'created',
status: 'PENDING'
}
// Add content
const fields = [
{
id: 'title',
type: 'string',
value: 'Moderate this string of text!',
hash: '<SHA1 of value>'
},
{
id: 'image',
type: 'file',
value: '/relative/path/to/file', // Streamshield will attempt to retrieve the content remotely
hash: '<SHA1 of file on disk>'
},
...
]
// Moderate
const response = await ss.moderate(meta, fields)
if(response) {
// Content has been moderated, check Streamshield dashboard
} else {
// errors
}
FAQs
Official Streamshield npm library
The npm package streamshield receives a total of 0 weekly downloads. As such, streamshield popularity was classified as not popular.
We found that streamshield demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.