Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
email-signature-detector-fr
Advanced tools
Detects and extracts email signatures - for en-EN and fr-FR languages
Extracts signatures from emails.
Install: npm install email-signature-detector-fr
const signature = require('email-signature-detector-fr');
const body = `Dave,
See ticket #50366
Why do we issue this
Ron
Ron Smith
VP, Product Solutions
acme.com<http://acme.com/>
714.949.3001, rons@acme.com`;
const from = { email: 'rons@acme.com', displayName: 'Ron Smith' };
const ret = signature.getSignature(body,from);
TBD
returns - { signature: the signature text, bodyNoSig: see optional bodyNoSig parameter below } body - contains the email body text from - optional: contains email and displayName used to detect the sender name in the signature. (see example in Usage) bodyNoSig - optional: if true and the signature is found, the return object includes bodyNoSig : the email text until the beginning of the signature.
returns - the email text until the beginning of the signature body - contains the email body text from - optional: contains email and displayName used to detect the sender name in the signature. (see example in Usage)
The library implements a simple algorithm to detect lines that are candidate for being the start of a signature, and score each candidate by examining the lines following the start.
Example of trigger candidates:
Thanks
and Regards
The score of each candidate is determined by the likelihood of the following lines to be part of the signature. Each of the lines that follow a trigger candidiate is given a score that relates to this likelihood.
Example of lines with high score:
Also, we implement some heuristics, for instance:
Note: The detectors of phone numbers, email addresses and urls are simple and their purpose is to support the signature scoring. They shouldn't be used standalone. Please refer to a specialized detector and validation libraries for that.
FAQs
Detects and extracts email signatures - for en-EN and fr-FR languages
We found that email-signature-detector-fr 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.