
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.
bootstrap-tokenfield
Advanced tools
Advanced tagging/tokenizing plugin for input fields with a focus on keyboard and copy-paste support.
![NPM version][npm-badge] ![Build status][travis-badge] [npm-badge]: https://badge.fury.io/js/bootstrap-tokenfield.png [travis-badge]: https://travis-ci.org/sliptree/bootstrap-tokenfield.png?branch=master
A jQuery tagging / tokenizer input plugin for Twitter's Bootstrap, by the guys from Sliptree
Check out the demo and docs
Requirements: jQuery 1.9+, Bootstrap 3+ (only CSS)
dist/bootstrap-tokenfield.js
or dist/bootstrap-tokenfield.min.js
in your HTMLdist/css/bootstrap-tokenfield.css
in your HTML$('input').tokenfield()
You can use the tokenfield:createtoken
event for that. Check the event.attrs
property for token value and label,
and the run your duplicate detection logic. If it's a duplicate token, simply do event.preventDefault()
.
Here's a simple example that checks if token's value is equal to any of the existing tokens' values.
$('#my-tokenfield').on('tokenfield:createtoken', function (event) {
var existingTokens = $(this).tokenfield('getTokens');
$.each(existingTokens, function(index, token) {
if (token.value === event.attrs.value)
event.preventDefault();
});
});
See release notes
Previous releases:
0.10.0
autocomplete="off"
to prevent browser-specific autocomplete suggestionstriggerKeys
has been renamed to delimiter
and accepts a single or an array of characters instead of character codes.0.9.9-1
triggerKeys
option0.9.8
triggerKeys
option0.9.7 Valuable
prevetDuplicateToken
event0.9.5 Typeable
0.9.2 Maintenance release
0.9.0 Bootstrappable
0.7.1
0.7.0 Autocompleted
0.6.7 Crossable
0.6.5 Shiftable
0.6 Editable
0.5 Initial release
FAQs
Advanced tagging/tokenizing plugin for input fields with a focus on keyboard and copy-paste support.
The npm package bootstrap-tokenfield receives a total of 38,185 weekly downloads. As such, bootstrap-tokenfield popularity was classified as popular.
We found that bootstrap-tokenfield 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
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.