
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
ng2-tagsinput
Advanced tools
An improved version of angular2-tag-input
Install it from npm:
npm install ng2-tagsinput
System.config({
...
map: {
...
'ng2-tagsinput': 'node_modules/ng2-tagsinput',
...
}
...
});
import {Ng2TagsInput} from 'ng2-tagsinput/ng2-tagsinput';
...
@Component({
directives: [Ng2TagsInput]
})
...
Use in template like below
<tag-input
placeholder="Add tags ..."
[model]="tagsArray"
(tagsChanged)="onTagsChange($event)"
(tagsAdded)="onTagsAdded($event)"
(tagRemoved)="onTagRemoved($event)"
>
Where model is the array of elements which will have the resulting tags list. tagsChanged is fired whenever tags list changes i.e. tags are added or removed.
model
: string[]
- Model you want the tags list to bind to.placeholder
: string
- Default: 'Add a tag'
- Placeholder for the <input>
tag.delimiterCode
: Array<number>
- Default: '[188]'
- Array of ASCII keycodes to split tags on. Defaults to comma.addOnBlur
: boolean
- Default: true
- Whether to attempt to add a tag when the input loses focus.addOnEnter
: boolean
- Default: true
- Whether to attempt to add a tag when the user presses enter.addOnPaste
: boolean
- Default: true
- Whether to attempt to add a tags when the user pastes their clipboard contents.allowedTagsPattern
: RegExp
- Default: /.+/
- RegExp that must match for a tag to be added.tagsChanged
: string[]
- Fires when tags list is changed in any way.tagsAdded
: string[]
- Fires when tags are added.tagRemoved
: string[]
- Fires when tag is removed.FAQs
Typescript component for Tag Input
The npm package ng2-tagsinput receives a total of 0 weekly downloads. As such, ng2-tagsinput popularity was classified as not popular.
We found that ng2-tagsinput 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.