| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5a860d9 commit 611c2f6
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ actually in the global scope but in the module scope - this will be noted. | |||
| 13 | 13 | ||
| 14 | 14 | Used to handle binary data. See the [buffer section][]. | |
| 15 | 15 | ||
| 16 | - ## __dirname | ||
| 16 | + ## \_\_dirname | ||
| 17 | 17 | ||
| 18 | 18 | <!-- type=var --> | |
| 19 | 19 | ||
@@ -30,7 +30,7 @@ console.log(__dirname); | |||
| 30 | 30 | ||
| 31 | 31 | `__dirname` isn't actually a global but rather local to each module. | |
| 32 | 32 | ||
| 33 | - ## __filename | ||
| 33 | + ## \_\_filename | ||
| 34 | 34 | ||
| 35 | 35 | <!-- type=var --> | |
| 36 | 36 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ path.basename('/foo/bar/baz/asdf/quux.html', '.html') | |||
| 28 | 28 | ||
| 29 | 29 | The platform-specific path delimiter, `;` or `':'`. | |
| 30 | 30 | ||
| 31 | - An example on *nix: | ||
| 31 | + An example on \*nix: | ||
| 32 | 32 | ||
| 33 | 33 | ```js | |
| 34 | 34 | console.log(process.env.PATH) | |
@@ -181,7 +181,7 @@ path.normalize('/foo/bar//baz/asdf/quux/..') | |||
| 181 | 181 | ||
| 182 | 182 | Returns an object from a path string. | |
| 183 | 183 | ||
| 184 | - An example on *nix: | ||
| 184 | + An example on \*nix: | ||
| 185 | 185 | ||
| 186 | 186 | ```js | |
| 187 | 187 | path.parse('/home/user/dir/file.txt') | |
@@ -294,7 +294,7 @@ path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif') | |||
| 294 | 294 | ||
| 295 | 295 | The platform-specific file separator. `'\\'` or `'/'`. | |
| 296 | 296 | ||
| 297 | - An example on *nix: | ||
| 297 | + An example on \*nix: | ||
| 298 | 298 | ||
| 299 | 299 | ```js | |
| 300 | 300 | 'foo/bar/baz'.split(path.sep) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -863,22 +863,22 @@ In classes that extend the Readable class, make sure to call the | |||
| 863 | 863 | Readable constructor so that the buffering settings can be properly | |
| 864 | 864 | initialized. | |
| 865 | 865 | ||
| 866 | - #### readable._read(size) | ||
| 866 | + #### readable.\_read(size) | ||
| 867 | 867 | ||
| 868 | 868 | * `size` {Number} Number of bytes to read asynchronously | |
| 869 | 869 | ||
| 870 | 870 | Note: **Implement this method, but do NOT call it directly.** | |
| 871 | 871 | ||
| 872 | 872 | This method is prefixed with an underscore because it is internal to the | |
| 873 | 873 | class that defines it and should only be called by the internal Readable | |
| 874 | - class methods. All Readable stream implementations must provide a _read | ||
| 874 | + class methods. All Readable stream implementations must provide a \_read | ||
| 875 | 875 | method to fetch data from the underlying resource. | |
| 876 | 876 | ||
| 877 | - When _read is called, if data is available from the resource, `_read` should | ||
| 877 | + When \_read is called, if data is available from the resource, `_read` should | ||
| 878 | 878 | start pushing that data into the read queue by calling `this.push(dataChunk)`. | |
| 879 | 879 | `_read` should continue reading from the resource and pushing data until push | |
| 880 | 880 | returns false, at which point it should stop reading from the resource. Only | |
| 881 | - when _read is called again after it has stopped should it start reading | ||
| 881 | + when \_read is called again after it has stopped should it start reading | ||
| 882 | 882 | more data from the resource and pushing that data onto the queue. | |
| 883 | 883 | ||
| 884 | 884 | Note: once the `_read()` method is called, it will not be called again until | |
@@ -1127,7 +1127,7 @@ and Readable classes respectively. The `'finish'` event is fired after | |||
| 1127 | 1127 | `end` is fired after all data has been output which is after the callback | |
| 1128 | 1128 | in `_flush` has been called. | |
| 1129 | 1129 | ||
| 1130 | - #### transform._flush(callback) | ||
| 1130 | + #### transform.\_flush(callback) | ||
| 1131 | 1131 | ||
| 1132 | 1132 | * `callback` {Function} Call this function (optionally with an error | |
| 1133 | 1133 | argument) when you are done flushing any remaining data. | |
@@ -1154,7 +1154,7 @@ the class that defines it, and should not be called directly by user | |||
| 1154 | 1154 | programs. However, you **are** expected to override this method in | |
| 1155 | 1155 | your own extension classes. | |
| 1156 | 1156 | ||
| 1157 | - #### transform._transform(chunk, encoding, callback) | ||
| 1157 | + #### transform.\_transform(chunk, encoding, callback) | ||
| 1158 | 1158 | ||
| 1159 | 1159 | * `chunk` {Buffer | String} The chunk to be transformed. Will **always** | |
| 1160 | 1160 | be a buffer unless the `decodeStrings` option was set to `false`. | |
@@ -1309,7 +1309,7 @@ In classes that extend the Writable class, make sure to call the | |||
| 1309 | 1309 | constructor so that the buffering settings can be properly | |
| 1310 | 1310 | initialized. | |
| 1311 | 1311 | ||
| 1312 | - #### writable._write(chunk, encoding, callback) | ||
| 1312 | + #### writable.\_write(chunk, encoding, callback) | ||
| 1313 | 1313 | ||
| 1314 | 1314 | * `chunk` {Buffer | String} The chunk to be written. Will **always** | |
| 1315 | 1315 | be a buffer unless the `decodeStrings` option was set to `false`. | |
@@ -1342,7 +1342,7 @@ the class that defines it, and should not be called directly by user | |||
| 1342 | 1342 | programs. However, you **are** expected to override this method in | |
| 1343 | 1343 | your own extension classes. | |
| 1344 | 1344 | ||
| 1345 | - #### writable._writev(chunks, callback) | ||
| 1345 | + #### writable.\_writev(chunks, callback) | ||
| 1346 | 1346 | ||
| 1347 | 1347 | * `chunks` {Array} The chunks to be written. Each chunk has following | |
| 1348 | 1348 | format: `{ chunk: ..., encoding: ... }`. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments