Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-childprocess

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-childprocess

Access Child Process API from Electron through Angular Service

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
254
decreased by-9.61%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-childprocess

Based on the ngx-electron package this wraps the child_process node API for Angular applications which are running inside an electron app

Installation

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) { }
}

Keywords

FAQs

Package last updated on 26 Jul 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc