]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/config/helpers.js
1 const path
= require('path')
3 const ROOT
= path
.resolve(__dirname
, '..')
5 console
.log('root directory:', root() + '\n')
7 function hasProcessFlag (flag
) {
8 return process
.argv
.join('').indexOf(flag
) > -1
11 function root (args
) {
12 args
= Array
.prototype.slice
.call(arguments
, 0)
13 return path
.join
.apply(path
, [ROOT
].concat(args
))
16 exports
.hasProcessFlag
= hasProcessFlag