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
2020-06-12 13:12:27 +02:00

19 lines
391 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,
' '
)
)