Mercurial > hg > nginx-site
comparison xml/en/docs/njs/compatibility.xml @ 2269:6426814f9373
Added padStart/padEnd, removed fs.read/write/appendFile in njs Compatibility.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 29 Oct 2018 21:43:29 +0300 |
parents | c30048802769 |
children | 34a1901e663d |
comparison
equal
deleted
inserted
replaced
2268:cd1b26111884 | 2269:6426814f9373 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Compatibility" | 9 <article name="Compatibility" |
10 link="/en/docs/njs/compatibility.html" | 10 link="/en/docs/njs/compatibility.html" |
11 lang="en" | 11 lang="en" |
12 rev="3"> | 12 rev="4"> |
13 | 13 |
14 <section> | 14 <section> |
15 | 15 |
16 <para> | 16 <para> |
17 njs is created in compliance with | 17 njs is created in compliance with |
85 <link doc="reference.xml" id="string_endswith"><literal>endsWith</literal></link>, | 85 <link doc="reference.xml" id="string_endswith"><literal>endsWith</literal></link>, |
86 <link doc="reference.xml" id="string_repeat"><literal>repeat</literal></link> | 86 <link doc="reference.xml" id="string_repeat"><literal>repeat</literal></link> |
87 </listitem> | 87 </listitem> |
88 | 88 |
89 <listitem> | 89 <listitem> |
90 ES8: | |
91 <link doc="reference.xml" id="string_padstart"><literal>padStart</literal></link>, | |
92 <link doc="reference.xml" id="string_padend"><literal>padEnd</literal></link> | |
93 </listitem> | |
94 | |
95 <listitem> | |
90 non-standard: | 96 non-standard: |
91 <link doc="reference.xml" id="string_bytesfrom"><literal>bytesFrom</literal></link> (0.2.3) | 97 <link doc="reference.xml" id="string_bytesfrom"><literal>bytesFrom</literal></link> (0.2.3) |
92 <link doc="reference.xml" id="string_fromutf8"><literal>fromUTF8</literal></link>, | 98 <link doc="reference.xml" id="string_fromutf8"><literal>fromUTF8</literal></link>, |
93 <link doc="reference.xml" id="string_toutf8"><literal>toUTF8</literal></link>, | 99 <link doc="reference.xml" id="string_toutf8"><literal>toUTF8</literal></link>, |
94 <link doc="reference.xml" id="string_frombytes"><literal>fromBytes</literal></link>, | 100 <link doc="reference.xml" id="string_frombytes"><literal>fromBytes</literal></link>, |
198 </listitem> | 204 </listitem> |
199 | 205 |
200 <listitem> | 206 <listitem> |
201 <link url="https://nodejs.org/api/fs.html#fs_file_system">Node.js style</link> | 207 <link url="https://nodejs.org/api/fs.html#fs_file_system">Node.js style</link> |
202 <literal>File system</literal> methods: | 208 <literal>File system</literal> methods: |
203 <literal>fs.readFile</literal>, | |
204 <link doc="reference.xml" id="readfilesync"><literal>fs.readFileSync</literal></link>, | 209 <link doc="reference.xml" id="readfilesync"><literal>fs.readFileSync</literal></link>, |
205 <literal>fs.appendFile</literal>, | |
206 <link doc="reference.xml" id="appendfilesync"><literal>fs.appendFileSync</literal></link>, | 210 <link doc="reference.xml" id="appendfilesync"><literal>fs.appendFileSync</literal></link>, |
207 <literal>fs.writeFile</literal>, | |
208 <link doc="reference.xml" id="writefilesync"><literal>fs.writeFileSync</literal></link> | 211 <link doc="reference.xml" id="writefilesync"><literal>fs.writeFileSync</literal></link> |
209 </listitem> | 212 </listitem> |
210 | 213 |
211 <listitem> | 214 <listitem> |
212 <link url="https://nodejs.org/api/crypto.html#crypto_class_hash">Node.js style</link> | 215 <link url="https://nodejs.org/api/crypto.html#crypto_class_hash">Node.js style</link> |