You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/fs/README.md
+11-35Lines changed: 11 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,44 +39,20 @@ var f = fs;
39
39
// returns {...}
40
40
```
41
41
42
-
The namespace contains functions to read files from disk.
43
-
44
-
<!-- <toc keywords="+read"> -->
42
+
<!-- <toc pattern="*"> -->
45
43
46
44
<divclass="namespace-toc">
47
45
46
+
- <spanclass="signature">[`exists( path, clbk )`][@stdlib/fs/exists]</span><spanclass="delimiter">: </span><spanclass="description">test whether a path exists on the filesystem.</span>
48
47
- <spanclass="signature">[`readDir( path, clbk )`][@stdlib/fs/read-dir]</span><spanclass="delimiter">: </span><spanclass="description">read the contents of a directory.</span>
49
48
- <spanclass="signature">[`readFile( file, [options,] clbk )`][@stdlib/fs/read-file]</span><spanclass="delimiter">: </span><spanclass="description">read the entire contents of a file.</span>
50
49
- <spanclass="signature">[`readFileList( filepaths, [options,] clbk )`][@stdlib/fs/read-file-list]</span><spanclass="delimiter">: </span><spanclass="description">read the entire contents of each file in a file list.</span>
51
50
- <spanclass="signature">[`readJSON( file, [options,] clbk )`][@stdlib/fs/read-json]</span><spanclass="delimiter">: </span><spanclass="description">read a file as JSON.</span>
52
51
- <spanclass="signature">[`readWASM( file, [options,] clbk )`][@stdlib/fs/read-wasm]</span><spanclass="delimiter">: </span><spanclass="description">read a file as WebAssembly.</span>
53
-
54
-
</div>
55
-
56
-
<!-- </toc> -->
57
-
58
-
Furthermore, it contains functions to write `data` to a `file`.
59
-
60
-
<!-- <toc keywords="+write"> -->
61
-
62
-
<divclass="namespace-toc">
63
-
64
-
- <spanclass="signature">[`writeFile( file, data, [options,] clbk )`][@stdlib/fs/write-file]</span><spanclass="delimiter">: </span><spanclass="description">write data to a file.</span>
65
-
66
-
</div>
67
-
68
-
<!-- </toc> -->
69
-
70
-
Besides the aforementioned, it contains the following functions:
71
-
72
-
<!-- <toc keywords="-read, -write"> -->
73
-
74
-
<divclass="namespace-toc">
75
-
76
-
- <spanclass="signature">[`exists( path, clbk )`][@stdlib/fs/exists]</span><spanclass="delimiter">: </span><spanclass="description">test whether a path exists on the filesystem.</span>
77
52
- <spanclass="signature">[`rename( oldPath, newPath, clbk )`][@stdlib/fs/rename]</span><spanclass="delimiter">: </span><spanclass="description">rename a file.</span>
78
53
- <spanclass="signature">[`resolveParentPath( path, [options,] clbk )`][@stdlib/fs/resolve-parent-path]</span><spanclass="delimiter">: </span><spanclass="description">resolve a path by walking parent directories.</span>
79
54
- <spanclass="signature">[`unlink( path, clbk )`][@stdlib/fs/unlink]</span><spanclass="delimiter">: </span><spanclass="description">remove a directory entry.</span>
55
+
- <spanclass="signature">[`writeFile( file, data, [options,] clbk )`][@stdlib/fs/write-file]</span><spanclass="delimiter">: </span><spanclass="description">write data to a file.</span>
0 commit comments