|
9 | 9 | <article name="Reference"
|
10 | 10 | link="/en/docs/njs/reference.html"
|
11 | 11 | lang="en"
|
12 |
| - rev="125"> |
| 12 | + rev="126"> |
13 | 13 |
|
14 | 14 | <section id="summary">
|
15 | 15 |
|
@@ -4932,6 +4932,7 @@ undefined
|
4932 | 4932 | <tr><td><link id="fs_promises_open"><literal>fs.promises.open()</literal></link></td></tr>
|
4933 | 4933 | <tr><td><link id="fs_readdirsync"><literal>fs.readdirSync()</literal></link></td></tr>
|
4934 | 4934 | <tr><td><link id="fs_readfilesync"><literal>fs.readFileSync()</literal></link></td></tr>
|
| 4935 | +<tr><td><link id="fs_readlinksync"><literal>fs.readlinkSync()</literal></link></td></tr> |
4935 | 4936 | <tr><td><link id="fs_readsync"><literal>fs.readSync()</literal></link></td></tr>
|
4936 | 4937 | <tr><td><link id="fs_realpathsync"><literal>fs.realpathSync()</literal></link></td></tr>
|
4937 | 4938 | <tr><td><link id="fs_renamesync"><literal>fs.renameSync()</literal></link></td></tr>
|
@@ -5208,6 +5209,21 @@ true
|
5208 | 5209 | </example>
|
5209 | 5210 | </tag-desc>
|
5210 | 5211 |
|
| 5212 | +<tag-name id="fs_readlinksync"><literal>readlinkSync(<value>path</value>[, |
| 5213 | +<value>options</value>])</literal></tag-name> |
| 5214 | +<tag-desc> |
| 5215 | +Synchronously gets the contents of the symbolic link <literal>path</literal> |
| 5216 | +using |
| 5217 | +<link url="https://man7.org/linux/man-pages/man2/readlink.2.html">readlink(2)</link> |
| 5218 | +(<link doc="changes.xml" id="njs0.8.7">0.8.7</link>). |
| 5219 | +The <literal>options</literal> argument can be a string specifying an encoding, |
| 5220 | +or an object with <literal>encoding</literal> property |
| 5221 | +specifying the character encoding to use. |
| 5222 | +If the <literal>encoding</literal> is <value>buffer</value>, |
| 5223 | +the result is returned as a <literal>Buffer</literal> object, |
| 5224 | +otherwise as a string. |
| 5225 | +</tag-desc> |
| 5226 | + |
5211 | 5227 | <tag-name id="fs_readsync"><literal>readSync(<value>fd</value>,
|
5212 | 5228 | <value>buffer</value>, <value>offset</value>[,
|
5213 | 5229 | <value>length</value>[, <value>position</value>]])</literal></tag-name>
|
|
0 commit comments