Skip to content

Commit 69fb8b0

Browse files
author
nwhitmont
committed
Format all instances of Node.js per trademark guidelines
1 parent 6e41837 commit 69fb8b0

File tree

13 files changed

+18
-18
lines changed

13 files changed

+18
-18
lines changed

SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* [globals.d.ts](docs/project/globals.md)
3535
* [Namespaces](docs/project/namespaces.md)
3636
* [Dynamic Import Expressions](docs/project/dynamic-import-expressions.md)
37-
* [NodeJS QuickStart](docs/quick/nodejs.md)
37+
* [Node.js QuickStart](docs/quick/nodejs.md)
3838
* [Browser QuickStart](docs/quick/browser.md)
3939
* [TypeScript's Type System](docs/types/type-system.md)
4040
* [JS Migration Guide](docs/types/migrating.md)

docs/classes-emit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ After having tutored many people about this I find the following explanation to
6565
1. effect of `new` on `this` inside the called function
6666
1. effect of `new` on `prototype` and `__proto__`
6767

68-
All objects in JavaScript contain a `__proto__` member. This member is often not accessible in older browsers (sometimes documentation refers to this magical property as `[[prototype]]`). It has one objective: If a property is not found on an object during lookup (e.g. `obj.property`) then it is looked up at `obj.__proto__.property`. If it is still not found then `obj.__proto__.__proto__.property` till either: *it is found* or *the latest `.__proto__` itself is null*. This explains why JavaScript is said to support *prototypal inheritance* out of the box. This is shown in the following example, which you can run in the chrome console or nodejs:
68+
All objects in JavaScript contain a `__proto__` member. This member is often not accessible in older browsers (sometimes documentation refers to this magical property as `[[prototype]]`). It has one objective: If a property is not found on an object during lookup (e.g. `obj.property`) then it is looked up at `obj.__proto__.property`. If it is still not found then `obj.__proto__.__proto__.property` till either: *it is found* or *the latest `.__proto__` itself is null*. This explains why JavaScript is said to support *prototypal inheritance* out of the box. This is shown in the following example, which you can run in the chrome console or Node.js:
6969

7070
```ts
7171
var foo = {}

docs/future-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Future JavaScript: Now
2-
One of the main selling points of TypeScript is that it allows you to use a bunch of features from ES6 and beyond in current (ES3 and ES5 level) JavaScript engines (like current browsers and NodeJS). Here we deep dive into why these features are useful followed by how these features are implemented in TypeScript.
2+
One of the main selling points of TypeScript is that it allows you to use a bunch of features from ES6 and beyond in current (ES3 and ES5 level) JavaScript engines (like current browsers and Node.js). Here we deep dive into why these features are useful followed by how these features are implemented in TypeScript.
33

44
Note: Not all of these features are slated for immediate addition to JavaScript but provide great utility to your code organization and maintenance. Also note that you are free to ignore any of the constructs that don't make sense for your project, although you will end up using most of them eventually ;)

docs/javascript/closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ counter.increment();
5454
console.log(counter.getVal()); // 2
5555
```
5656

57-
At a high level it is also what makes something like nodejs possible (don't worry if it doesn't click in your brain right now. It will eventually 🌹):
57+
At a high level it is also what makes something like Node.js possible (don't worry if it doesn't click in your brain right now. It will eventually 🌹):
5858

5959
```ts
6060
// Pseudo code to explain the concept

docs/project/external-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import foo = require('foo');
3535

3636
will generate *different* JavaScript based on the compiler *module* option (`--module commonjs` or `--module amd` or `--module umd` or `--module system`).
3737

38-
Personal recommendation: use `--module commonjs` and then your code will work as it is for NodeJS and for frontend you can use something like `webpack`.
38+
Personal recommendation: use `--module commonjs` and then your code will work as it is for Node.js and for frontend you can use something like `webpack`.
3939

4040
### Import type only
4141
The following statement:

docs/project/module-resolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ declare module "foo" {
4848
This makes the module `"foo"`, *importable*.
4949

5050
## Node Modules
51-
The node module resolution is actually pretty much the same one used by NodeJS / NPM ([official nodejs docs](https://nodejs.org/api/modules.html#modules_all_together)). Here is a simple mental model I have:
51+
The node module resolution is actually pretty much the same one used by Node.js / NPM ([official nodejs docs](https://nodejs.org/api/modules.html#modules_all_together)). Here is a simple mental model I have:
5252

5353
* module `foo/bar` will resolve to some file : `node_modules/foo` (the module) + `foo/bar`
5454

docs/quick/browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ If you are using TypeScript to create a web application here are my recommendati
33

44
## General Machine Setup
55

6-
* Install [NodeJS](https://nodejs.org/en/download/)
6+
* Install [Node.js](https://nodejs.org/en/download/)
77

88
## Project Setup
99
* Create a project dir:

docs/quick/nodejs.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# TypeScript with NodeJS
2-
TypeScript has had *first class* support for NodeJS since inception. Here's how to setup a quick NodeJS project:
1+
# TypeScript with Node.js
2+
TypeScript has had *first class* support for Node.js since inception. Here's how to setup a quick Node.js project:
33

4-
> Note: many of these steps are actually just common practice nodejs setup steps
4+
> Note: many of these steps are actually just common practice Node.js setup steps
55
6-
1. Setup a nodejs project `package.json`. Quick one : `npm init -y`
6+
1. Setup a Node.js project `package.json`. Quick one : `npm init -y`
77
1. Add TypeScript (`npm install typescript --save-dev`)
88
1. Add `node.d.ts` (`npm install @types/node --save-dev`)
99
1. Init a `tsconfig.json` for TypeScript options (`node ./node_modules/typescript/lib/tsc --init`)
@@ -28,7 +28,7 @@ So you can now run `npm start` and as you edit `index.ts`:
2828

2929
* nodemon reruns its command (ts-node)
3030
* ts-node transpiles automatically picking up tsconfig.json and the installed typescript version,
31-
* ts-node runs the output javascript through node.
31+
* ts-node runs the output javascript through Node.js.
3232

3333
## Creating TypeScript node modules
3434

@@ -62,7 +62,7 @@ package
6262
* have `include: ["./src/**/*]"` < This includes all the files from the `src` dir.
6363

6464
* In your `package.json` have
65-
* `"main": "lib/index"` < This tells NodeJS to load `lib/index.js`
65+
* `"main": "lib/index"` < This tells Node.js to load `lib/index.js`
6666
* `"types": "lib/index"` < This tells TypeScript to load `lib/index.d.ts`
6767

6868

docs/styleguide/styleguide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ return undefined;
182182

183183
* Use `null` where its a part of the API or conventional
184184

185-
> Reason: It is conventional in NodeJS e.g. `error` is `null` for NodeBack style callbacks.
185+
> Reason: It is conventional in Node.js e.g. `error` is `null` for NodeBack style callbacks.
186186
187187
**Bad**
188188
```ts

docs/tips/typed-event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Typesafe Event Emitter
22

3-
Conventionally in NodeJS and traditional JavaScript you have a single event emitter. This event emitter internally tracks listener for different event types e.g.
3+
Conventionally in Node.js and traditional JavaScript you have a single event emitter. This event emitter internally tracks listener for different event types e.g.
44

55
```js
66
const emitter = new EventEmitter();

0 commit comments

Comments
 (0)