mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
7 lines
279 B
Plaintext
7 lines
279 B
Plaintext
|
#!/usr/bin/env node
|
||
|
const fs = require('fs')
|
||
|
const vm = require('vm')
|
||
|
const snapshotScriptPath = process.argv[2]
|
||
|
const snapshotScript = fs.readFileSync(snapshotScriptPath, 'utf8')
|
||
|
vm.runInNewContext(snapshotScript, undefined, {filename: snapshotScriptPath, displayErrors: true})
|