Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cosmicjs-browser
Advanced tools
The official Javascript client for Cosmic JS on the browser. This module helps you easily add dynamic content to your website or application.
Go to https://cosmicjs.com, create an account and setup a bucket.
npm install cosmicjs
/* Configure
================================ */
var config = {};
config.bucket = {
slug : 'client-example',
read_key : '', // add read_key if added to your Cosmic JS bucket settings
write_key : '' // add write_key if added to your Cosmic JS bucket settings
};
/* Get objects
================================ */
Cosmic.getObjects(config, function(err, objects){
// do something with objects
});
/* Get media
================================ */
Cosmic.getMedia(config, function(err, media){
// do something with media
});
/* Add object
================================ */
var object = {
"write_key" : config.bucket.write_key,
"type_slug" : "pages",
"title" : "Test Title",
"content" : "Test Content"
};
Cosmic.addObject(config, object, function(err, object){
// say hi to your new object
});
/* Edit object
================================ */
var object = {
"write_key" : config.bucket.write_key,
"slug" : "test-title",
"type_slug" : "pages",
"title" : "New Title",
"content" : "New Content"
};
Cosmic.editObject(config, object, function(err, object){
// say hi to your edited object
});
/* Delete object
================================ */
var object = {
"write_key" : config.bucket.write_key,
"slug" : "test-title"
};
Cosmic.deleteObject(config, object, function(err, object){
// say goodbye to your object
});
FAQs
The official Javascript client for Cosmic JS on the browser. This module helps you easily add dynamic content to your website or application
The npm package cosmicjs-browser receives a total of 0 weekly downloads. As such, cosmicjs-browser popularity was classified as not popular.
We found that cosmicjs-browser 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.