UNPKG

@simbachain/libsimba-js

Version:

libsimba-js is a library simplifying the use of SIMBAChain APIs. We aim to abstract away the various blockchain concepts, reducing the necessary time needed to get to working code.

10 lines (9 loc) 292 B
const execSync = require('child_process').execSync; code = execSync('git rev-parse --abbrev-ref HEAD'); let branch = code.toString('utf8').trim(); if(branch === 'master'){ process.exit(0); }else{ console.error(`Branch is not master! It is ${branch}`); process.exit(1); }