initial commit

This commit is contained in:
2026-03-22 03:21:45 +02:00
commit 897fea9f4e
15431 changed files with 2548840 additions and 0 deletions

2
node_modules/electron-prebuilt/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,2 @@
dist/
path.txt

5
node_modules/electron-prebuilt/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js:
- '0.10'
- '0.12'
- 'iojs'

7
node_modules/electron-prebuilt/CONTRIBUTING.md generated vendored Normal file
View File

@@ -0,0 +1,7 @@
releases for this module are handled by https://github.com/johnmuhl/electron-prebuilt-updater
versions published to npm should match the versions published to [github releases for electron](https://github.com/atom/electron/releases)
coding style should be `standard`:
[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)

7
node_modules/electron-prebuilt/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,7 @@
Copyright (c) 2015 Mathias Buus-Madsen, Max Ogden and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

87
node_modules/electron-prebuilt/README.md generated vendored Normal file
View File

@@ -0,0 +1,87 @@
# electron-prebuilt
[![build status](http://img.shields.io/travis/mafintosh/electron-prebuilt.svg?style=flat)](http://travis-ci.org/mafintosh/electron-prebuilt)
[![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)](http://dat-data.com/)
![badge](https://nodei.co/npm/electron-prebuilt.png?downloads=true)
Install [electron](https://github.com/atom/electron) prebuilt binaries for command-line use using npm. This module helps you easily install the `electron` command for use on the command line without having to compile anything.
Electron is a JavaScript runtime that bundles Node.js and Chromium. You use it similar to the `node` command on the command line for executing JavaScript programs. For more info you can read [this intro blog post](http://maxogden.com/electron-fundamentals.html) or dive into the [Electron documentation](https://github.com/atom/electron/tree/master/docs)
## Installation
Download and install the latest build of electron for your OS and add it to your projects `package.json` as a `devDependency`:
```
npm install electron-prebuilt --save-dev
```
This is the preferred way to use electron, as it doesn't require users to install electron globally.
You can also use the `-g` flag (global) to symlink it into your PATH:
```
npm install -g electron-prebuilt
```
If that command fails with an `EACCESS` error you may have to run it again with `sudo`:
```
sudo npm install -g electron-prebuilt
```
Now you can just run `electron` to run electron:
```
electron
```
If you need to use an HTTP proxy you can [set these environment variables](https://github.com/request/request/tree/f0c4ec061141051988d1216c24936ad2e7d5c45d#controlling-proxy-behaviour-using-environment-variables)
If you want to change the architecture that is downloaded (e.g., `ia32` on an `x64` machine), you can use the `--arch` flag with npm install or set the `npm_config_arch` environment variable:
```
npm install --arch=ia32 electron-prebuilt
```
## About
Works on Mac, Windows and Linux OSes that Electron supports (e.g. Electron [does not support Windows XP](https://github.com/atom/electron/issues/691)).
The version numbers of this module match the version number of the [offical Electron releases](https://github.com/atom/electron/releases), which do not follow [semantic versioning](http://semver.org/).
This module is automatically released whenever a new version of Electron is released thanks to [electron-prebuilt-updater](https://github.com/johnmuhl/electron-prebuilt-updater) written by [John Muhl](https://github.com/johnmuhl/).
## Usage
First you have to [write an electron application](https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md)
Then you can run your app using:
```
electron your-app/
```
## Related modules
- [electron-packager](https://github.com/maxogden/electron-packager) - package and distribute your electron app in OS executables (.app, .exe etc)
- [electron-builder](https://github.com/loopline-systems/electron-builder) - create installers for Windows and OS X. It's built to work together with electron-packager
- [menubar](https://github.com/maxogden/menubar) - high level way to create menubar desktop applications with electron
Find more at the [awesome-electron](https://github.com/sindresorhus/awesome-electron) list
## Programmatic usage
Most people use this from the command line, but if you require `electron-prebuilt` inside your node app it will return the file path to the binary.
Use this to spawn electron from node scripts.
``` js
var electron = require('electron-prebuilt')
var proc = require('child_process')
// will something similar to print /Users/maf/.../Electron
console.log(electron)
// spawn electron
var child = proc.spawn(electron)
```

10
node_modules/electron-prebuilt/cli.js generated vendored Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env node
var electron = require('./')
var proc = require('child_process')
var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'});
child.on('close', function (code) {
process.exit(code);
})

20
node_modules/electron-prebuilt/dist/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
Copyright (c) 2014 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

BIN
node_modules/electron-prebuilt/dist/content_shell.pak generated vendored Normal file

Binary file not shown.

BIN
node_modules/electron-prebuilt/dist/electron generated vendored Executable file

Binary file not shown.

BIN
node_modules/electron-prebuilt/dist/icudtl.dat generated vendored Normal file

Binary file not shown.

BIN
node_modules/electron-prebuilt/dist/libgcrypt.so.11 generated vendored Normal file

Binary file not shown.

BIN
node_modules/electron-prebuilt/dist/libnode.so generated vendored Executable file

Binary file not shown.

BIN
node_modules/electron-prebuilt/dist/libnotify.so.4 generated vendored Normal file

Binary file not shown.

0
node_modules/electron-prebuilt/dist/locales/am.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ar.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/bg.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/bn.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ca.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/cs.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/da.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/de.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/el.pak generated vendored Normal file
View File

View File

View File

View File

0
node_modules/electron-prebuilt/dist/locales/es.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/et.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/fa.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/fi.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/fil.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/fr.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/gu.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/he.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/hi.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/hr.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/hu.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/id.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/it.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ja.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/kn.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ko.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/lt.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/lv.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ml.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/mr.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ms.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/nb.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/nl.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/pl.pak generated vendored Normal file
View File

View File

View File

0
node_modules/electron-prebuilt/dist/locales/ro.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ru.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/sk.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/sl.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/sr.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/sv.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/sw.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/ta.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/te.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/th.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/tr.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/uk.pak generated vendored Normal file
View File

0
node_modules/electron-prebuilt/dist/locales/vi.pak generated vendored Normal file
View File

View File

View File

18422
node_modules/electron-prebuilt/dist/natives_blob.bin generated vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
node_modules/electron-prebuilt/dist/resources/atom.asar generated vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,20 @@
var app = require('app');
var BrowserWindow = require('browser-window');
var mainWindow = null;
// Quit when all windows are closed.
app.on('window-all-closed', function() {
app.quit();
});
app.on('ready', function() {
mainWindow = new BrowserWindow({
width: 800,
height: 600,
'auto-hide-menu-bar': true,
'use-content-size': true,
});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.focus();
});

View File

@@ -0,0 +1,121 @@
<html>
<head>
<title>Electron</title>
<style>
body {
color: #555;
font-family: 'Open Sans',Helvetica,Arial,sans-serif;
padding: 30px;
}
h2 {
color: #2b6cc2;
font-family: "Crimson Text",Georgia,serif;
font-weight: 400;
line-height: 1.1;
letter-spacing: -0.015em;
}
a {
color: #2b6cc2;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
pre, code {
font-family: "Menlo","Lucida Console",monospace;
border: 1px solid #ddd;
background-color: #f8f8f8;
border-radius: 3px;
}
pre {
white-space: pre-wrap;
font-size: 13px;
line-height: 19px;
overflow: auto;
padding: 6px 10px;
}
#holder {
border: 4px dashed #ccc;
margin: 0 auto;
height: 300px;
color: #ccc;
font-size: 40px;
line-height: 300px;
text-align: center;
-webkit-user-select: none;
}
#holder.hover {
border: 4px dashed #999;
color: #eee;
}
</style>
</head>
<body>
<script>
var execPath = require('remote').process.execPath;
var command = execPath + ' path-to-your-app';
document.onclick = function(e) {
e.preventDefault();
if (e.target.tagName == 'A')
require('shell').openExternal(e.target.href);
return false;
};
document.ondragover = document.ondrop = function(e) {
e.preventDefault();
return false;
};
</script>
<h2 style="-webkit-app-region: drag">Welcome to Electron</h2>
<p>
To run your app with Electron, execute the following command under your
Console (or Terminal):
</p>
<script>document.write('<pre>' + command + '</pre>')</script>
<p>
The <code>path-to-your-app</code> should be the path to your own Electron
app, you can read the <a href='https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md'>quick start</a>
guide in Electron's <a href='https://github.com/atom/electron/blob/master/docs'>docs</a>
on how to write one.
</p>
<p>
Or you can just drag your app here to run it:
</p>
<div id="holder">
Drag your app here to run it
</div>
<script>
var holder = document.getElementById('holder');
holder.ondragover = function () {
this.className = 'hover';
return false;
};
holder.ondragleave = holder.ondragend = function () {
this.className = '';
return false;
};
holder.ondrop = function (e) {
this.className = '';
e.preventDefault();
var file = e.dataTransfer.files[0];
require('child_process').execFile(execPath, [file.path], {
detached: true, stdio: 'ignore'
}).unref();
return false;
};
</script>
</body>
</html>

View File

@@ -0,0 +1,273 @@
var app = require('app');
var dialog = require('dialog');
var fs = require('fs');
var path = require('path');
var Menu = require('menu');
var BrowserWindow = require('browser-window');
// Quit when all windows are closed and no other one is listening to this.
app.on('window-all-closed', function() {
if (app.listeners('window-all-closed').length == 1)
app.quit();
});
// Parse command line options.
var argv = process.argv.slice(1);
var option = { file: null, help: null, version: null, webdriver: null, modules: [] };
for (var i = 0; i < argv.length; i++) {
if (argv[i] == '--version' || argv[i] == '-v') {
option.version = true;
break;
} else if (argv[i].match(/^--app=/)) {
option.file = argv[i].split('=')[1];
break;
} else if (argv[i] == '--help' || argv[i] == '-h') {
option.help = true;
break;
} else if (argv[i] == '--test-type=webdriver') {
option.webdriver = true;
} else if (argv[i] == '--require' || argv[i] == '-r') {
option.modules.push(argv[++i]);
continue;
} else if (argv[i][0] == '-') {
continue;
} else {
option.file = argv[i];
break;
}
}
// Create default menu.
app.once('ready', function() {
if (Menu.getApplicationMenu())
return;
var template = [
{
label: 'Edit',
submenu: [
{
label: 'Undo',
accelerator: 'CmdOrCtrl+Z',
role: 'undo'
},
{
label: 'Redo',
accelerator: 'Shift+CmdOrCtrl+Z',
role: 'redo'
},
{
type: 'separator'
},
{
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
role: 'cut'
},
{
label: 'Copy',
accelerator: 'CmdOrCtrl+C',
role: 'copy'
},
{
label: 'Paste',
accelerator: 'CmdOrCtrl+V',
role: 'paste'
},
{
label: 'Select All',
accelerator: 'CmdOrCtrl+A',
role: 'selectall'
},
]
},
{
label: 'View',
submenu: [
{
label: 'Reload',
accelerator: 'CmdOrCtrl+R',
click: function(item, focusedWindow) {
if (focusedWindow)
focusedWindow.reload();
}
},
{
label: 'Toggle Full Screen',
accelerator: (function() {
if (process.platform == 'darwin')
return 'Ctrl+Command+F';
else
return 'F11';
})(),
click: function(item, focusedWindow) {
if (focusedWindow)
focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
}
},
{
label: 'Toggle Developer Tools',
accelerator: (function() {
if (process.platform == 'darwin')
return 'Alt+Command+I';
else
return 'Ctrl+Shift+I';
})(),
click: function(item, focusedWindow) {
if (focusedWindow)
focusedWindow.toggleDevTools();
}
},
]
},
{
label: 'Window',
role: 'window',
submenu: [
{
label: 'Minimize',
accelerator: 'CmdOrCtrl+M',
role: 'minimize'
},
{
label: 'Close',
accelerator: 'CmdOrCtrl+W',
role: 'close'
},
]
},
{
label: 'Help',
role: 'help',
submenu: [
{
label: 'Learn More',
click: function() { require('shell').openExternal('http://electron.atom.io') }
},
{
label: 'Documentation',
click: function() { require('shell').openExternal('https://github.com/atom/electron/tree/master/docs#readme') }
},
{
label: 'Community Discussions',
click: function() { require('shell').openExternal('https://discuss.atom.io/c/electron') }
},
{
label: 'Search Issues',
click: function() { require('shell').openExternal('https://github.com/atom/electron/issues') }
}
]
},
];
if (process.platform == 'darwin') {
template.unshift({
label: 'Electron',
submenu: [
{
label: 'About Electron',
role: 'about'
},
{
type: 'separator'
},
{
label: 'Services',
role: 'services',
submenu: []
},
{
type: 'separator'
},
{
label: 'Hide Electron',
accelerator: 'Command+H',
role: 'hide'
},
{
label: 'Hide Others',
accelerator: 'Command+Shift+H',
role: 'hideothers:'
},
{
label: 'Show All',
role: 'unhide:'
},
{
type: 'separator'
},
{
label: 'Quit',
accelerator: 'Command+Q',
click: function() { app.quit(); }
},
]
});
template[3].submenu.push(
{
type: 'separator'
},
{
label: 'Bring All to Front',
role: 'front'
}
);
}
var menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
});
if (option.modules.length > 0) {
require('module')._preloadModules(option.modules);
}
// Start the specified app if there is one specified in command line, otherwise
// start the default app.
if (option.file && !option.webdriver) {
try {
// Override app name and version.
var packagePath = path.resolve(option.file);
var packageJsonPath = path.join(packagePath, 'package.json');
if (fs.existsSync(packageJsonPath)) {
var packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
if (packageJson.version)
app.setVersion(packageJson.version);
if (packageJson.productName)
app.setName(packageJson.productName);
else if (packageJson.name)
app.setName(packageJson.name);
app.setPath('userData', path.join(app.getPath('appData'), app.getName()));
app.setPath('userCache', path.join(app.getPath('cache'), app.getName()));
app.setAppPath(packagePath);
}
// Run the app.
require('module')._load(packagePath, module, true);
} catch(e) {
if (e.code == 'MODULE_NOT_FOUND') {
app.focus();
dialog.showErrorBox('Error opening app', 'The app provided is not a valid electron app, please read the docs on how to write one:\nhttps://github.com/atom/electron/tree/master/docs\n\n' + e.toString());
process.exit(1);
} else {
console.error('App threw an error when running', e);
throw e;
}
}
} else if (option.version) {
console.log('v' + process.versions.electron);
process.exit(0);
} else if (option.help) {
var helpMessage = "Electron v" + process.versions.electron + " - Cross Platform Desktop Application Shell\n\n";
helpMessage += "Usage: electron [options] [path]\n\n";
helpMessage += "A path to an Electron application may be specified. The path must be to \n";
helpMessage += "an index.js file or to a folder containing a package.json or index.js file.\n\n";
helpMessage += "Options:\n";
helpMessage += " -r, --require Module to preload (option can be repeated)\n";
helpMessage += " -h, --help Print this usage message.\n";
helpMessage += " -v, --version Print the version.";
console.log(helpMessage);
process.exit(0);
} else {
require('./default_app.js');
}

View File

@@ -0,0 +1,5 @@
{
"name": "electron",
"productName": "Electron",
"main": "main.js"
}

BIN
node_modules/electron-prebuilt/dist/snapshot_blob.bin generated vendored Normal file

Binary file not shown.

1
node_modules/electron-prebuilt/dist/version generated vendored Normal file
View File

@@ -0,0 +1 @@
v0.34.1

4
node_modules/electron-prebuilt/index.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
var fs = require('fs')
var path = require('path')
module.exports = fs.readFileSync(path.join(__dirname, 'path.txt'), 'utf-8')

38
node_modules/electron-prebuilt/install.js generated vendored Executable file
View File

@@ -0,0 +1,38 @@
#!/usr/bin/env node
// maintainer note - x.y.z-ab version in package.json -> x.y.z
var version = require('./package').version.replace(/-.*/, '')
var fs = require('fs')
var os = require('os')
var path = require('path')
var extract = require('extract-zip')
var download = require('electron-download')
var platform = os.platform()
function onerror (err) {
throw err
}
var paths = {
darwin: path.join(__dirname, './dist/Electron.app/Contents/MacOS/Electron'),
linux: path.join(__dirname, './dist/electron'),
win32: path.join(__dirname, './dist/electron.exe')
}
if (!paths[platform]) throw new Error('Unknown platform: ' + platform)
// downloads if not cached
download({version: version, arch: process.env.npm_config_arch}, extractFile)
// unzips and makes path.txt point at the correct executable
function extractFile (err, zipPath) {
if (err) return onerror(err)
fs.writeFile(path.join(__dirname, 'path.txt'), paths[platform], function (err) {
if (err) return onerror(err)
extract(zipPath, {dir: path.join(__dirname, 'dist')}, function (err) {
if (err) return onerror(err)
})
})
}

34
node_modules/electron-prebuilt/package.json generated vendored Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "electron-prebuilt",
"version": "0.34.1",
"description": "Install electron (formerly called atom-shell) prebuilt binaries for command-line use using npm",
"repository": {
"type": "git",
"url": "https://github.com/mafintosh/electron-prebuilt"
},
"scripts": {
"cache-clean": "rm -rf ~/.electron && rm -rf dist",
"postinstall": "node install.js",
"pretest": "npm run cache-clean && node install.js",
"test": "tape test/*.js"
},
"bin": {
"electron": "cli.js"
},
"main": "index.js",
"dependencies": {
"extract-zip": "^1.0.3",
"electron-download": "^1.0.0"
},
"devDependencies": {
"home-path": "^0.1.1",
"path-exists": "^1.0.0",
"tape": "^3.0.1"
},
"author": "Mathias Buus",
"license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/electron-prebuilt/issues"
},
"homepage": "https://github.com/mafintosh/electron-prebuilt"
}

1
node_modules/electron-prebuilt/path.txt generated vendored Normal file
View File

@@ -0,0 +1 @@
/home/kevin/Documents/jibo-sdk/node_modules/electron-prebuilt/dist/electron

15
node_modules/electron-prebuilt/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
var tape = require('tape')
var electron = require('../')
var path = require('path');
var pathExists = require('path-exists')
var getHomePath = require('home-path')()
tape('has local binary', function(t) {
t.ok(pathExists.sync(electron), 'electron was downloaded')
t.end()
})
tape('has cache folder', function(t) {
t.ok(pathExists.sync(path.join(getHomePath, './.electron')), 'cache exists')
t.end()
})