1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
ocean.js/scripts/get-metadata.js

17 lines
325 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,
' '
)
)