
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@beardedtim/wordsmith
Advanced tools
I shot an elephant in my pajamas last night!
This module exposes three functions:
(normalizer, tokenizer, opts) => str|[str] => [objects]
normailzer must normalize words for tokenizer(opts = {}) => str => str
opts.rules and opts.conversions.rules: array of { regex, replace } objects.coversions: array of { regex, replace } objectsopts.sentenceRegex and opts.wordRegex.wordRegex: Regex to split at for words.sentenceRegex: Regex to split at for sentencesconst { makeTokenizer, makeNormalizer, makeGrammarizer } = require('@beardedtim/wordsmith');
const normalizerRules = [
{ regex: /some-custom-stuff/gi, replace: 'cuz' },
];
const normalizer = makeNormalizer({ rules: normalizerRules });
const tokenizer = makeTokenizer();
const sentences = tokenizer
.toSentences(normalizer('I do stuff some-custom-stuff. With my friends!'))
// [ 'I do stuff cuz.', 'With my friends!']
const grammarize = makeGrammarizer(normalizer, tokenizer);
const types = grammarize(sentences); // [ { type: 'declrative' }, { type: 'exlamatory' }]
FAQs
> I shot an elephant in my pajamas last night!
We found that @beardedtim/wordsmith 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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.