Files
  • index.js
  • methods
  • types
  • package-lock.json
  • utils.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
 *  `unix-permissions` demo.
 *  https://github.com/ehmicky/unix-permissions
 **/

const { bash } = require('./utils')

/**
 *  Uncomment the example you would like to run below.
 *  Then open that file using the left sidebar (šŸ“„ icon)
 **/

/**
 *  Demo of each permission type in JavaScript.
 **/

// require('./types/octal.js')
// require('./types/number.js')
// require('./types/stat.js')
// require('./types/symbolic.js')
// require('./types/object.js')

/**
 *  Demo of each permission type in the terminal (Bash).
 **/
 
// bash('./types/octal.sh')
// bash('./types/stat.sh')
// bash('./types/symbolic.sh')
// bash('./types/object.sh')

/**
 *  Demo of each method in JavaScript.
 **/

// require('./methods/convert.js')
// require('./methods/type.js')
// require('./methods/normalize.js')
// require('./methods/positive.js')
// require('./methods/contain.js')
// require('./methods/equal.js')
// require('./methods/set.js')
// require('./methods/not.js')
// require('./methods/invert.js')
// require('./methods/min.js')
// require('./methods/max.js')

/**
 *  Demo of each method in the terminal (Bash).
 **/
 
// bash('./methods/convert.sh')
// bash('./methods/type.sh')
// bash('./methods/normalize.sh')
// bash('./methods/positive.sh')
// bash('./methods/contain.sh')
// bash('./methods/equal.sh')
// bash('./methods/set.sh')
// bash('./methods/not.sh')
// bash('./methods/invert.sh')
// bash('./methods/min.sh')
// bash('./methods/max.sh')
node v10.15.2 linux/amd64