
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
ngx-barcodeput
Advanced tools
Formerly called ngx-barcodeput
Angular directive for handling input events. Useful for determine input using a barcode-scanner.
Like binding to a regular type
event in a template, you can do something like this:
<input ngxBarCodePut
(onDetected)="onDetected($event)">
npm install --save ngx-barcodeput
Add NgxBarCodePutModule
to your list of module imports:
import { NgxBarCodePutModule } from 'ngx-barcodeput';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, FormsModule, NgxBarCodePutModule],
bootstrap: [AppComponent]
})
class AppModule {}
You can then use the directive in your templates:
@Component({
selector: 'app',
template: `
<input type="text"
ngxBarCodePut
maxlength="14"
[debounce]="300"
autocomplete="off"
[skipStartLength]="5"
(onDetected)="onDetected($event)"
(onBackspace)="onBackspace($event)">
`
})
export class AppComponent {
public onDetected(event: IDetect) {
console.log(event.type, event.time, event.value);
}
public onBackspace(event: IBackspace) {
console.log(event.code, event.keyName, event.value);
}
}
Property name | Type | Default | Description |
---|---|---|---|
debounce | number | 0 | This property is necessary for scenarios such as type-ahead where the rate of user input must be controlled. |
skipStart | number | 0 | Allows you to ignore the first values of the length of the input data. The search begins after entering the first character if the value is 0. |
onDetected | event | empty | Returns object with input value, data entry time and device type: keyboard, scanner or enter key . |
onBackspace | event | empty | Returns the object with input value, the code and name of the backspace key. |
FAQs
This package helps determine input using a barcode-scanner.
We found that ngx-barcodeput demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.