1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/scripts/get-metadata.js
2019-06-18 12:29:51 +02:00

15 lines
320 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
const packageInfo = require('../package.json');
const execSync = require('child_process').execSync;
process.stdout.write(
JSON
.stringify({
version: require('../package.json').version,
commit: execSync(`git rev-parse HEAD`).toString().trim(),
}, null, ' ')
);