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.
datocms-client
Advanced tools
<body>
<script src="https://npmcdn.com/datocms-client/dist/datocms-client.min.js"></script>
<script>
var dato;
DatoCmsClient.readOnlySession({
domain: 'funky-sea-4874.admin.datocms.com',
token: 'XXXYYY',
})
.then(function(session) {
dato = new DatoCmsClient.RecordsRepo(session);
return dato.refresh();
})
.then(function() {
console.log(dato.find('9288').id);
console.log(dato.find('9288').title);
console.log(dato.find('9288').image.url({ w: 50 }));
})
.catch(function(e) {
console.log(e);
});
</script>
</body>
npm install --save datocms-client
import { readOnlySession, RecordsRepo } from 'datocms-client';
let dato;
readOnlySession({
domain: 'funky-sea-4874.admin.datocms.com',
token: 'XXXYYY',
})
.then(function(session) {
dato = new RecordsRepo(session);
return dato.refresh();
})
.then(function() {
console.log(dato.find('9288').id);
console.log(dato.find('9288').title);
console.log(dato.find('9288').image.url({ w: 50 }));
})
.catch(function(e) {
console.log(e);
});
FAQs
For new DatoCMS users, we recommend @datocms/cma-client-node
The npm package datocms-client receives a total of 9,172 weekly downloads. As such, datocms-client popularity was classified as popular.
We found that datocms-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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’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.