# 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 [![Travis Build Status](https://travis-ci.org/electron/mksnapshot.svg?branch=master)](https://travis-ci.org/electron/mksnapshot) [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/ugparq4awqbf4fq5/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/mksnapshot/branch/master) [![Linux and Mac Build Status](https://circleci.com/gh/electron/mksnapshot/tree/master.svg?style=shield)](https://circleci.com/gh/electron/mksnapshot/tree/master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![devDependencies:?](https://img.shields.io/david/electron/mksnapshot.svg)](https://david-dm.org/electron/mksnapshot)
[![license:mit](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT) [![npm:](https://img.shields.io/npm/v/electron-mksnapshot.svg)](https://www.npmjs.com/packages/electron-mksnapshot) [![dependencies:?](https://img.shields.io/npm/dm/electron-mksnapshot.svg)](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/" ```