
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
stereotype-client
Advanced tools
This project contains a client library for Cimpress' Stereotype service.
let sc = new StereotypeClient(AUTH0_V2_TOKEN);
// Create a template:
sc.createTemplate('Hello {{name}}!', 'text/mustache')
.then(
(response) => {
console.log(response.status);
console.log(response.templateId);
},
(err) => console.log("ERROR:\n", err));
// Create or update a template:
sc.putTemplate('Greeting', 'Hello {{name}}!', 'text/mustache')
.then(
(status) => console.log(status),
(err) => console.log("ERROR:\n", err));
// Get an existing template:
sc.getTemplate('Greeting')
.then(
(template) => console.log(template),
(err) => console.log('ERROR:\n', err.message));
// Get a list of templates:
let skipCache = false;
let includePublic = false; //Include public templates
sc.listTemplates(skipCache, includePublic)
.then(
(template) => {
console.log(template.templateId);
console.log(template.canCopy); // Boolean
console.log(template.canEdit); // Boolean
},
(err) => console.log('ERROR:\n', err.message));
// Materialize a template:
sc.materialize('Greeting', {
"name": "Zoidberg"
}).then(
(mat) => console.log(mat),
(err) => console.log("ERROR:\n", err));
// Materialize a template and fetch its materialization id:
let matId = sc.materialize('Greeting', {
"name": "Zoidberg"
}, true).then(
(matId) => console.log(matId),
(err) => console.log("ERROR:\n", err));
// Fetch an existing materialization:
sc.getMaterialization(matId)
.then(
(mat) => console.log(mat),
(err) => console.log('ERROR:\n', err));
For any inquiries, we invite you to reach out to the Trdelnik Squad at TrdelnikSquad@cimpress.com.
FAQs
A simple client for Cimpress' Stereotype service.
We found that stereotype-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.