
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
backbone.typeahead
Advanced tools
Integrates typeahead search into backbone collections.
View the online demo.
class Albums extends Backbone.TypeaheadCollection
typeaheadAttributes: ['band', 'name', 'meta.members']
tokenizeAttribute: (s) ->
s = s.trim()
return null if s.length is 0
tokens = []
for word in s.toLowerCase().split(/[\s\-_]+/)
i = 0
while i < word.length
tokens.push(word.substr(i))
i++
tokens
albums = new Albums([
{ band: 'A Flock of Seagulls', name: 'A Flock of Seagulls', meta: { members: ['Mike Score'] }}
{ band: 'Rick Astley', name: 'Whenever You Need Somebody', meta: { members: ['Rick Astley'] }}
{ band: 'Queen', name: 'A Day at the Races', meta: { members: ['Freddie Mercury', 'Brian May'] }}
{ band: 'Queen', name: 'Tie Your Mother Down', meta: { members: ['Freddie Mercury', 'Brian May'] }}
])
console.log album.get('name') for album in albums.typeahead('you')
# Outputs:
# Whenever You Need Somebody
# Tie Your Mother Down
console.log album.get('name') for album in albums.typeahead('ra', band: 'Queen')
# Outputs:
# A Day at the Races
console.log album.get('name') for album in albums.typeahead('fred')
# Outputs:
# A Day at the Races
# Tie Your Mother Down
# Custom tokenizer
console.log album.get('name') for album in albums.typeahead('ces')
# Outputs:
# A Day at the Races
Inspired by Twitter's typeahead.js.
FAQs
Backbone collection typeahead search with facet
The npm package backbone.typeahead receives a total of 0 weekly downloads. As such, backbone.typeahead popularity was classified as not popular.
We found that backbone.typeahead demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.