# mksnapshot
**Repository Path**: mirrors_Axosoft/mksnapshot
## Basic Information
- **Project Name**: mksnapshot
- **Description**: Electron mksnapshot binaries
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-05-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Electron mksnapshot
[](https://travis-ci.org/electron/mksnapshot)
[](https://ci.appveyor.com/project/electron-bot/mksnapshot/branch/master)
[](https://circleci.com/gh/electron/mksnapshot/tree/master)
[](http://standardjs.com/)
[](https://david-dm.org/electron/mksnapshot)
[](https://opensource.org/licenses/MIT)
[](https://www.npmjs.com/packages/electron-mksnapshot)
[](https://www.npmjs.com/packages/electron-mksnapshot)
Simple node module to download the `mksnapshot` binaries compatible with
Electron for creating v8 snapshots.
The major version of this library tracks the major version of the Electron
versions released. So if you are using Electron `2.0.x` you would want to use
an `electron-mksnapshot` dependency of `~2.0.0` in your `package.json` file.
## Using
```sh
npm install --save-dev electron-mksnapshot
mksnapshot.js file.js (--output_dir OUTPUT_DIR).
```
Running mksnapshot.js will generate both a snapshot_blob.bin and v8_context_snapshot.bin files which
are needed to use custom snapshots in Electron.
If an output directory isn't specified, the current directory will be used.
(Additional mksnapshot args except for --startup_blob are supported, run mksnapshot --help to see options)
## Custom Mirror
You can set the `ELECTRON_MIRROR` or [`NPM_CONFIG_ELECTRON_MIRROR`](https://docs.npmjs.com/misc/config#environment-variables)
environment variables to use a custom base URL for downloading mksnapshot zips.
```sh
# Electron mirror for China
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
# Local mirror
# Example of requested URL: http://localhost:8080/1.2.0/mksnapshot-v1.2.0-darwin-x64.zip
ELECTRON_MIRROR="http://localhost:8080/"
```