Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ngx-childprocess
Advanced tools
Based on the ngx-electron
package this wraps the child_process node API for Angular applications which are running inside an electron app
ngx-childprocess
can be installed easily using either yarn
or npm
commands in the scope of an angular project.
$ yarn add ngx-childprocess --save
# or
$ npm install ngx-childprocess --save
ngx-childprocess
is exposing a module called NgxChildProcessModule
which needs to be imported in your AppModule
.
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {NgxChildProcessModule} from 'ngx-childprocess';
import {AppComponent} from './app.component';
@NgModule({
declarations: [],
imports: [
BrowserModule,
NgxChildProcessModule
],
bootstrap: [AppComponent]
})
export class AppModule {
}
Once the module has been imported, you can easily use angular DI to ask for ChildProcessService
.
import {Component} from '@angular/core';
import {ChildProcessService} from 'ngx-childprocess';
@Component({
selector: 'my-app',
templateUrl: 'app.html'
})
export class AppComponent {
constructor(private _childProcessService: ChildProcessService) { }
}
FAQs
Access Child Process API from Electron through Angular Service
The npm package ngx-childprocess receives a total of 215 weekly downloads. As such, ngx-childprocess popularity was classified as not popular.
We found that ngx-childprocess 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.