Socket
Book a DemoInstallSign in
Socket

falcor-electron

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

falcor-electron

falcor integration for electron's ipc module

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

falcor-electron

Build Status

Falcor integration for electron using the ipc module.

Usage

Install from npm.

npm install --save falcor-electron

Install your Router as a data source in the main process.

import ipc from 'ipc';
import Router from 'falcor-router';
import { installIpcHandler } from 'falcor-electron';

installIpcHandler(ipc, () => {
  return new Router([
    // ... routes
  ]);
});

Configure your Model with an IpcDataSource in the renderer process.

import ipc from 'ipc';
import { Model } from 'falcor';
import { createIpcDataSource } from 'falcor-electron';

const model = new Model({
  source: createIpcDataSource(ipc)
});

Contributing

Feature requests and bugs/bug fixes are happily accepted and can be submitted either as issues or pull requests.

  • Source is compiled with babel
    • Presets:
      • es2015
      • stage-1
  • Source is linted with eslint
  • Tests are run with tape

For code contributions, please fork develop and submit a PR.

FAQs

Package last updated on 09 Nov 2015

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.