
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
density-trie
Advanced tools
A trie tree implementation, provide add/remove/lookup and density calcuation over specified text. Eastern/Western languages are supported
Node v4.0+
npm install density-trie --save
var Trie = require('density-trie');
var should = require('should');
describe('Demo', function() {
var western = true;
var trie = new Trie(western);
trie.add('He');
trie.add('Hell');
trie.add('Hello');
console.log(trie.dump());
var text = 'here is a fragment of text with "Hello World", "Hello" should be 2, "Hell" should be 1, no matter if "eHell" or eHello presented';
trie.density(text).should.be.deepEqual({
Hello: 2,
World: 1,
Hell: 1
});
should(trie.remove('Hello').lookup('Hello')).not.be.ok();
trie.check('check method will return immediately when any keyword is found, like Hello').should.be.ok();
trie.replace('replace KEYWORD with *******').be.exactly('replace ******* with *******');
});
FAQs
Trie tree implementation with keywords density calcuation functionality
We found that density-trie 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.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.