| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f299c44 commit f4c6f7a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -589,8 +589,8 @@ added: v0.3.0 | |||
| 589 | 589 | * {Object} | |
| 590 | 590 | ||
| 591 | 591 | Modules are cached in this object when they are required. By deleting a key | |
| 592 | - value from this object, the next `require` will reload the module. Note that | ||
| 593 | - this does not apply to [native addons][], for which reloading will result in an | ||
| 592 | + value from this object, the next `require` will reload the module. | ||
| 593 | + This does not apply to [native addons][], for which reloading will result in an | ||
| 594 | 594 | error. | |
| 595 | 595 | ||
| 596 | 596 | Adding or replacing entries is also possible. This cache is checked before | |
@@ -675,7 +675,7 @@ changes: | |||
| 675 | 675 | * `paths` {string[]} Paths to resolve module location from. If present, these | |
| 676 | 676 | paths are used instead of the default resolution paths, with the exception | |
| 677 | 677 | of [GLOBAL_FOLDERS][] like `$HOME/.node_modules`, which are always | |
| 678 | - included. Note that each of these paths is used as a starting point for | ||
| 678 | + included. Each of these paths is used as a starting point for | ||
| 679 | 679 | the module resolution algorithm, meaning that the `node_modules` hierarchy | |
| 680 | 680 | is checked from this location. | |
| 681 | 681 | * Returns: {string} | |
@@ -728,7 +728,7 @@ added: v0.1.16 | |||
| 728 | 728 | ||
| 729 | 729 | The `module.exports` object is created by the `Module` system. Sometimes this is | |
| 730 | 730 | not acceptable; many want their module to be an instance of some class. To do | |
| 731 | - this, assign the desired export object to `module.exports`. Note that assigning | ||
| 731 | + this, assign the desired export object to `module.exports`. Assigning | ||
| 732 | 732 | the desired object to `exports` will simply rebind the local `exports` variable, | |
| 733 | 733 | which is probably not what is desired. | |
| 734 | 734 | ||
@@ -755,7 +755,7 @@ a.on('ready', () => { | |||
| 755 | 755 | }); | |
| 756 | 756 | ``` | |
| 757 | 757 | ||
| 758 | - Note that assignment to `module.exports` must be done immediately. It cannot be | ||
| 758 | + Assignment to `module.exports` must be done immediately. It cannot be | ||
| 759 | 759 | done in any callbacks. This does not work: | |
| 760 | 760 | ||
| 761 | 761 | `x.js`: | |
@@ -905,7 +905,7 @@ added: v9.3.0 | |||
| 905 | 905 | A list of the names of all modules provided by Node.js. Can be used to verify | |
| 906 | 906 | if a module is maintained by a third party or not. | |
| 907 | 907 | ||
| 908 | - Note that `module` in this context isn't the same object that's provided | ||
| 908 | + `module` in this context isn't the same object that's provided | ||
| 909 | 909 | by the [module wrapper][]. To access it, require the `Module` module: | |
| 910 | 910 | ||
| 911 | 911 | ```js | |
| Back | FazBrowse Home | New Git URL |
0 commit comments