UNPKG
storybook-chromatic
Version:
alpha (3.5.1-alpha.1)
beta (1.0.3-beta.0)
debug (3.0.3-debug.0)
latest (4.0.2)
rc (3.0.0-rc.0)
4.0.2
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.1-alpha.1
3.5.1-alpha.0
3.5.0
3.4.1
3.4.0
3.3.0
3.1.0
3.0.3
3.0.3-debug.0
3.0.2
3.0.1
3.0.0
3.0.0-rc.0
3.0.0-debug.2
3.0.0-debug.1
3.0.0-debug.0
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.0
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.3-beta.2
1.0.3-beta.1
1.0.3-beta.0
1.0.2
1.0.1
1.0.0
1.0.0-debug.3
1.0.0-debug.2
1.0.0-debug.1
0.10.0-beta.5-dev
0.10.0-beta.11
0.10.0-beta.10
0.10.0-beta.9
0.10.0-beta.8
0.10.0-beta.7
0.10.0-beta.6
0.10.0-beta.5
0.10.0-beta.4
0.10.0-beta.3
0.10.0-beta.2
0.10.0-beta.1
0.10.0-beta.0
Visual Testing for Storybook
github.com/chromaui/chromatic-cli
chromaui/chromatic-cli
storybook-chromatic
/
bin
/
lib
/
resolveHomeDir.js
8 lines
(6 loc)
•
186 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
path
from
'path'
;
export
function
resolveHomeDir
(
filepath
) {
return
filepath && filepath.
startsWith
(
'~'
) ? path.
join
(process.
env
.
HOME
, filepath.
slice
(
1
)) : filepath; }