@@ -72,12 +72,24 @@ This is just [glob-watcher]
72
72
- mode - Specify the mode the files should be created with. Default is the mode of the input file (file.stat.mode)
73
73
- Returns a Readable/Writable stream.
74
74
- On write the stream will save the [ vinyl] File to disk at the folder/cwd specified.
75
- - After writing the file to disk, it will be emitted from the stream so you can keep piping these around
76
- - The file will be modified after being written to this stream
75
+ - After writing the file to disk, it will be emitted from the stream so you can keep piping these around.
76
+ - The file will be modified after being written to this stream:
77
77
- ` cwd ` , ` base ` , and ` path ` will be overwritten to match the folder
78
78
- ` stat.mode ` will be overwritten if you used a mode parameter
79
79
- ` contents ` will have it's position reset to the beginning if it is a stream
80
80
81
+ ### symlink(folder[ , opt] )
82
+
83
+ - Takes a folder path as the first argument.
84
+ - First argument can also be a function that takes in a file and returns a folder path.
85
+ - Possible options for the second argument:
86
+ - cwd - Specify the working directory the folder is relative to. Default is ` process.cwd() `
87
+ - Returns a Readable/Writable stream.
88
+ - On write the stream will create a symbolic link (i.e. symlink) on disk at the folder/cwd specified.
89
+ - After creating the symbolic link, it will be emitted from the stream so you can keep piping these around.
90
+ - The file will be modified after being written to this stream:
91
+ - ` cwd ` , ` base ` , and ` path ` will be overwritten to match the folder
92
+
81
93
[ glob-stream ] : https://github.com/wearefractal/glob-stream
82
94
[ node-glob ] : https://github.com/isaacs/node-glob
83
95
[ gaze ] : https://github.com/shama/gaze
0 commit comments