UNPKG
patch-package
Version:
beta (6.1.0-0)
canary (8.1.0-canary.1)
latest (8.0.1)
8.1.0-canary.1
8.1.0-canary
8.0.1
8.0.0
8.0.0-canary.5
8.0.0-canary.4
8.0.0-canary.3
8.0.0-canary.2
8.0.0-canary.1
8.0.0-canary.0
7.0.2
7.0.1
7.0.0
6.5.1
6.5.0
6.4.7
6.4.6
6.4.5
6.4.4
6.4.3
6.4.2
6.4.1
6.4.0
6.3.1
6.3.0
6.2.2
6.2.1
6.2.0
6.1.4
6.1.3
6.1.2
6.1.1
6.1.0
6.1.0-0
6.0.7
6.0.6
6.0.5
6.0.4
6.0.2
6.0.1
6.0.0
6.0.0-18
6.0.0-17
6.0.0-16
6.0.0-15
6.0.0-14
6.0.0-13
6.0.0-12
6.0.0-11
6.0.0-10
6.0.0-9
6.0.0-8
6.0.0-7
6.0.0-6
6.0.0-5
6.0.0-4
6.0.0-3
6.0.0-2
6.0.0-1
6.0.0-0
5.1.2
5.1.1
5.1.0
5.0.0
4.0.0
3.6.1
3.6.0
3.5.3
3.5.3-0
3.5.2
3.5.1
3.5.0
3.4.6
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.1
3.2.0
3.1.0
3.0.0
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
When forking just won't work, patch it.
github.com/ds300/patch-package
ds300/patch-package
patch-package
/
integration-tests
/
file-mode-changes
/
assert-executable.js
11 lines
(8 loc)
•
177 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env node
const
file = process.
argv
[
2
]
const
mode =
require
(
"fs"
).
statSync
(file).
mode
if
((mode &
0b001000000
) >
0
) { process.
exit
(
0
) }
else
{ process.
exit
(
1
) }