Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
sdf-parser
Advanced tools
Allow to parse a SDF file and convert it to an array of objects
npm install sdf-parser
In node script:
// allows to parse a file test.sdf that would be present in the same directory
var parse = require('sdf-parser');
var fs = require('fs');
var sdf = fs.readFileSync('./test.sdf', 'utf-8');
var result = parse(sdf);
console.log(result);
options:
var result = parse(sdf, {
exclude:["Number of H-Donors"],
include:["Number of H-Donors",'CLogP','Code'],
modifiers: {
CLogP: function(field) {
return {
low: field*1-0.2,
high: field*1+0.2
}
}
},
filter: function(entry) {
return (entry.CLogP && entry.CLogP.low>4);
}
});
This API is only available on Node.js
Transform an input text stream to a stream of molecule objects.
fullResult
: true to emit the full result of parse
instead of just the molecules.parse
function.const stream = require('sdf-parser').stream;
fs.createReadStream('test.sdf')
.pipe(stream.molecules())
.on('data', (molecule) => {
console.log(molecule.molfile);
});
Transform an input text stream to a stream of sdf entries.
const stream = require('sdf-parser').stream;
fs.createReadStream('test.sdf')
.pipe(stream.entries())
.on('data', (entry) => {
// sdf entry as a string
});
FAQs
SDF parser
We found that sdf-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.