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

ngx-electron

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-electron - npm Package Compare versions

Comparing version 1.0.4 to 2.0.0

bundles/ngx-electron.umd.js

81

package.json

@@ -1,80 +0,1 @@

{
"name": "ngx-electron",
"description": "access Electron Renderer APIs easily using an Angular Service",
"version": "1.0.4",
"main": "bundles/core.umd.js",
"repository": {
"type": "git",
"url": "https://github.com/ThorstenHans/ngx-electron"
},
"author": "Thorsten Hans <thorsten.hans@gmail.com>",
"license": "MIT",
"scripts": {
"clean": "rimraf bundles coverage src/**/*.d.ts src/**/*.metadata.json src/**/*.js tests/**/*.d.ts tests/**/*.metadata.json tests/**/*.js index.d.ts index.metadata.json index.js",
"test": "karma start",
"test-watch": "karma start --singleRun=false --autoWatch=true",
"commit": "npm run prepublish && npm test && git-cz",
"prepublish": "ngc && npm run build",
"build": "webpack",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"keywords": [
"angular",
"angular2",
"ng",
"ngx",
"electron",
"github-electron"
],
"bugs": {
"url": "https://github.com/ThorstenHans/ngx-electron/issues"
},
"module": "index.js",
"typings": "index.d.ts",
"peerDependencies": {
"@angular/core": ">=2.0.0 || <=5.0.1"
},
"devDependencies": {
"@angular/animations": "5.0.0",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/compiler-cli": "5.0.0",
"@angular/core": "5.0.0",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "5.0.0",
"@angular/platform-server": "5.0.0",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"awesome-typescript-loader": "^3.1.3",
"clean-webpack-plugin": "^0.1.16",
"codelyzer": "~4.0.0",
"core-js": "^2.4.1",
"istanbul-instrumenter-loader": "*",
"jasmine-core": "~2.6.2",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.1.1",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.3",
"karma-remap-coverage": "^0.1.4",
"karma-sinon": "^1.0.5",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.3",
"loader-utils": "^1.1.0",
"reflect-metadata": "0.1.9",
"rimraf": "^2.6.1",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14",
"semantic-release": "^6.3.6",
"sinon": "^2.3.2",
"source-map-loader": "^0.2.1",
"ts-helpers": "^1.1.2",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "~2.4.2",
"tslint-loader": "^3.5.3",
"webpack": "^2.6.1",
"electron": "^1.7.9"
}
}
{"name":"ngx-electron","description":"An Angular wrapper for Electron's Renderer APIs","author":"Thorsten Hans","keywords":["angular","angular 2","ng","electron","electron-js"],"license":"MIT","homepage":"https://github.com/ThorstenHans/ngx-electron","repository":{"type":"git","url":"git+https://github.com/ThorstenHans/ngx-electron.git"},"bugs":{"url":"https://github.com/ThorstenHans/ngx-electron/issues"},"peerDependencies":{"@angular/core":">=7.0.0","rxjs":">=6.3.0","electron":">=3.0.6"},"devDependencies":{"semantic-release":"8.2.3"},"scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"bundles/ngx-electron.umd.js","module":"fesm5/ngx-electron.js","es2015":"fesm2015/ngx-electron.js","esm5":"esm5/ngx-electron.js","esm2015":"esm2015/ngx-electron.js","fesm5":"fesm5/ngx-electron.js","fesm2015":"fesm2015/ngx-electron.js","typings":"ngx-electron.d.ts","metadata":"ngx-electron.metadata.json","sideEffects":false,"dependencies":{"tslib":"^1.9.0"},"version":"2.0.0"}

@@ -6,12 +6,10 @@ # ngx-electron

`ngx-electron` provides an angular wrapper for Electron's APIs exposed as part of the renderer process.
`ngx-electron` is a small Module for [Angular](http://angular.io) which makes calling [Electron]() APIs from the [Renderer Process]() easier. By adding it to your Angular projet, you'll get intelli sense and a simple Angular service which acts as facade for Electron API's.
Besides taking away the pain of correctly loading the APIs, it's also providing strongly typed APIs using `@types/electron` as a dependency.
`ngx-electron` is licensed under [MIT](https://opensource.org/licenses/MIT).
## Introduction
Checkout the introduction post on my [blog](https://medium.com/@ThorstenHans/integrating-angular-and-electron-using-ngx-electron-9c36affca25e#.4scol1nli) for more details.
## Breaking changes
With version `1.0.1` static properties like `isElectronApp` and `runningInElectron` have been removed. Use instance property `isElectronApp` instead.
## Installation

@@ -21,16 +19,18 @@

```
$ yarn add ngx-electron --save
```bash
yarn add ngx-electron --save
# or
$ npm install ngx-electron --save
npm install ngx-electron --save
```
`ngx-electron` is exposing a module called `NgxElectronModule` which needs to be imported in your `AppModule`.
The `NgxElectronModule` needs to be import in your `root` Angular module (eg `AppModule`).
``` typescript
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {NgxElectronModule} from 'ngx-electron';
import {AppComponent} from './app.component';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { NgxElectronModule } from 'ngx-electron';
@NgModule({

@@ -49,7 +49,7 @@ declarations: [],

Once the module has been imported, you can easily use angular DI to ask for `ElectronService`.
Once the module has been imported, you can easily use dependency injection to get an instance of `ElectronService`.
``` typescript
import {Component} from '@angular/core';
import {ElectronService} from 'ngx-electron';
import { Component } from '@angular/core';
import { ElectronService } from 'ngx-electron';

@@ -90,8 +90,1 @@ @Component({

* `isElectronApp: boolean` - Indicates if app is being executed inside of electron or not
### Static Properties
**Have been removed in release** `1.0.1`
* ~~runningInElectron: boolean~~ - **removed** see `isElectronApp` instance property instead
* ~~isElectronApp: boolean~~ - **removed** see `isElectronApp` instance property
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