]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/config/helpers.js
Client: ID column smaller
[github/Chocobozzz/PeerTube.git] / client / config / helpers.js
CommitLineData
4a6995be
C
1const path = require('path')
2
3const ROOT = path.resolve(__dirname, '..')
4
5console.log('root directory:', root() + '\n')
6
7function hasProcessFlag (flag) {
8 return process.argv.join('').indexOf(flag) > -1
9}
10
11function root (args) {
12 args = Array.prototype.slice.call(arguments, 0)
13 return path.join.apply(path, [ROOT].concat(args))
14}
15
16exports.hasProcessFlag = hasProcessFlag
17exports.root = root