Skip to content

Commit 97736d7

Browse files
maharrgsashleygwilliams
authored andcommitted
fixed typos in docs
Company -about -private-npm -code_of_conduct Getting Started -creating-node-modules -what-is-npm -contributing -readme Added .gitignore
1 parent 67bd48a commit 97736d7

File tree

8 files changed

+58
-59
lines changed

8 files changed

+58
-59
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ content/files/
55
content/misc/
66
content/policies/
77
content.json
8+
.DS_Store

CODE_OF_CONDUCT.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# npm Code of Conduct
22

3-
npm exists to facilitate sharing code, by making it easy for
3+
npm exists to facilitate sharing code by making it easy for
44
JavaScript module developers to publish and distribute packages.
55

66
npm is a piece of technology, but more importantly, it is a community.
@@ -31,7 +31,7 @@ affairs.
3131

3232
This policy covers the usage of the npm registry, as well as the npm
3333
website, npm related events, and any other services offered by or on
34-
behalf of npm, Inc. (collectively, the "Service"). It also applies to
34+
behalf of npm, Inc. (collectively, the "Service"). It also applies to
3535
behavior in the context of the npm Open Source project communities,
3636
including but not limited to public GitHub repositories, IRC channels,
3737
social media, mailing lists, and public events.
@@ -44,25 +44,25 @@ The definitions of various subjective terms such as "discriminatory",
4444
"hateful", or "confusing" will be decided at the sole discretion of
4545
the npm abuse team.
4646

47-
## Friendly Harassment-Free Space
47+
## Friendly, Harassment-Free Space
4848

49-
We are committed to providing a friendly, safe and welcoming
49+
We are committed to providing a friendly, safe, and welcoming
5050
environment for all, regardless of gender identity, sexual
5151
orientation, disability, ethnicity, religion, age, physical
5252
appearance, body size, race, or similar personal characteristics.
5353

5454
We ask that you please respect that people have differences of opinion
55-
regarding technical choices, and that every design or implementation
56-
choice carries a trade-off and numerous costs. There is seldom a
57-
single right answer. A difference of technology preferences is not a
55+
regarding technical choices and that every design or implementation
56+
choice carries a trade-off and numerous costs. There is seldom a
57+
single right answer. A difference of technology preferences is not a
5858
license to be rude.
5959

6060
Disputes over package rights must be handled respectfully, according
61-
to the terms described in the npm Dispute Resolution document. There
61+
to the terms described in the npm Dispute Resolution document. There
6262
is never a good reason to be rude over package name disputes.
6363

6464
Any spamming, trolling, flaming, baiting, or other attention-stealing
65-
behavior is not welcome, and will not be tolerated.
65+
behavior is not welcome and will not be tolerated.
6666

6767
Harassing other users of the Service is never tolerated, whether via
6868
public or private media.
@@ -84,36 +84,36 @@ inappropriate physical contact; and unwelcome sexual attention.
8484
## Acceptable Package Content
8585

8686
<!--
87-
TODO: This should probably be split out into a separate doc. Maybe
87+
TODO: This should probably be split out into a separate doc. Maybe
8888
just link to the appropriate location in the Terms of Use once we have
8989
it.
9090
-->
9191

9292
The Service administrators reserve the right to make judgment calls
93-
about what is and isn't appropriate in published packages. These are
93+
about what is and isn't appropriate in published packages. These are
9494
guidelines to help you be successful in our community.
9595

9696
Packages published to the Service must be created using the npm
97-
command-line client, or a functionally equivalent implementation. For
97+
command-line client, or a functionally equivalent implementation. For
9898
example, a "package" must not be a PNG or JPEG image, movie file, or
99-
text document. Using the Service as a personal general-purpose
100-
database is also not allowed for this reason. Packages should be npm
101-
packages, and nothing else.
99+
text document. Using the Service as a personal general-purpose
100+
database is also not allowed for this reason. Packages should be npm
101+
packages and nothing else.
102102

103-
Packages must contain some functionality. "Squatting", that is,
103+
Packages must contain some functionality. "Squatting", that is,
104104
publishing an empty package to "reserve" a name, is not allowed.
105105

106-
Packages must not contain illegal or infringing content. You should
106+
Packages must not contain illegal or infringing content. You should
107107
only publish packages or other materials to the Service if you have
108-
the right to do so. This includes complying with all software license
108+
the right to do so. This includes complying with all software license
109109
agreements or other intellectual property restrictions. For example,
110110
redistributing an MIT-licensed module with the copyright notice
111-
removed, would not be allowed. You will be responsible for any
111+
removed would not be allowed. You will be responsible for any
112112
violation of laws or intellectual property rights.
113113

114-
Packages must not be malware. For example, a package which is
115-
designed to maliciously exploit or damage computer systems, is not
116-
allowed. However, an explicitly documented penetration testing
114+
Packages must not be malware. For example, a package which is
115+
designed to maliciously exploit or damage computer systems is not
116+
allowed. However, an explicitly documented penetration testing
117117
library designed to be used for white-hat security research would most
118118
likely be fine.
119119

@@ -124,7 +124,7 @@ abusive, inappropriate, or harassing content.
124124

125125
If you believe someone is harassing you or has otherwise violated this
126126
Code of Conduct, please contact us at <[email protected]> to send us an
127-
abuse report. If this is the initial report of a problem, please
127+
abuse report. If this is the initial report of a problem, please
128128
include as much detail as possible. It is easiest for us to address
129129
issues when we have more context.
130130

@@ -150,7 +150,7 @@ service).
150150
## Addressing Grievances
151151

152152
If you feel you have been falsely or unfairly accused of violating
153-
this Code of Conduct, you should notify npm, Inc. We will do our best
153+
this Code of Conduct, you should notify npm, Inc. We will do our best
154154
to ensure that your grievance is handled appropriately.
155155

156156
In general, we will choose the course of action that we judge as being
@@ -163,7 +163,7 @@ address a grievance related to an abuse report.
163163

164164
You are also encouraged to contact us if you are curious about
165165
something that might be "on the line" between appropriate and
166-
inappropriate content. We are happy to provide guidance to help you
166+
inappropriate content. We are happy to provide guidance to help you
167167
be a successful part of our community.
168168

169169
## Changes

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ Please also ensure your contribution conforms to the [Contributing Guidelines].
1818
## Commit Messages
1919

2020
The commit history of a project should read like that project's recipe.
21-
Commit messages should be written in the active, present, tense, e.g.,:
21+
Commit messages should be written in the active present tense, e.g.,:
2222

2323
`fix typo in how-npm-works dedupe section`
2424

2525
Other items:
2626
- You will be asked to [squash your commits].
2727
- Rebase is preferred over merge.
2828

29-
Note: Everything in git can be fixed. So don't be intimidated by these
30-
requirements! We're here to help you through it, if you need it :)
29+
Note: Everything in git can be fixed, so don't be intimidated by these
30+
requirements! We're here to help you through it, if you need it :).
3131

3232
## Issue Labels
3333

3434
- [`your-first-pr`][1]: reserved for people with little to no
3535
GitHub contributions- we're here to help you start your OS journey!
3636
- [`patches welcome`][2]: these issues are specifically well suited
37-
for outside contributors
37+
for outside contributors.
3838

3939
[1]: https://github.com/npm/docs/labels/your-first-pr
4040
[2]: https://github.com/npm/docs/labels/patches%20welcome

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [docs.npmjs.com](https://docs.npmjs.com)
22

3-
learn you some npm for great good
3+
Learn you some npm for great good.
44

55
[![Build Status](https://travis-ci.org/npm/docs.svg?branch=master)](https://travis-ci.org/npm/docs)
66
[![Code Climate](https://codeclimate.com/github/npm/docs/badges/gpa.svg)](https://codeclimate.com/github/npm/docs)
@@ -50,7 +50,7 @@ If you rename a directory inside the `content` directory, you'll need to change
5050

5151
## Development
5252

53-
Download node at [nodejs.org](https://nodejs.org) and install it, if you haven't already.
53+
Download Node at [nodejs.org](https://nodejs.org) and install it, if you haven't already.
5454

5555
To run the app locally:
5656

@@ -60,7 +60,7 @@ npm run dev
6060
```
6161
Now you have a server running [nodemon](https://www.npmjs.com/package/nodemon) at [localhost:5000](http://localhost:5000).
6262

63-
NOTE: If you are using `iojs`, or Node versions 4 or 5, on a Linux or OSX box,
63+
NOTE: If you are using `iojs`, or Node versions 4 or 5 on a Linux or OSX box,
6464
you will need to do the following steps:
6565
```
6666
$ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
@@ -78,19 +78,19 @@ $ npm rebuild
7878

7979
## The Build Process
8080

81-
The build is run automatically after every `npm install` and before `npm start`. Here's an overview of what it does.
81+
The build is run automatically after every `npm install` and before `npm start`. Here's an overview of what it does:
8282

83-
1. Copies [npm documentation](https://github.com/npm/npm/tree/master/doc) from `./node_modules/npm/doc` to `./content`
83+
1. Copies [npm documentation](https://github.com/npm/npm/tree/master/doc) from `./node_modules/npm/doc` to `./content`.
8484
1. Walks the [content directory](/content) collecting markdown files.
8585
1. Reads the contents of each markdown file.
86-
1. Parses [HTML Frontmatter](#html-frontmatter) from the markdown files
87-
1. Converts markdown to HTML
86+
1. Parses [HTML Frontmatter](#html-frontmatter) from the markdown files.
87+
1. Converts markdown to HTML.
8888
1. Writes [content.json](/content.json) with HTML content of each file included.
8989

9090
The copied and generated files are [ignored](/.gitignore) for two reasons:
9191

9292
1. Keeps the git history uncluttered.
93-
1. Prevents humans from accidentally editing auto-generated files
93+
1. Prevents humans from accidentally editing auto-generated files.
9494

9595
## Webservice
9696

content/company/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
npm is lots of things.
44

5-
* npm is the package manager for [Node.js](https://nodejs.org/). It was created in 2009 as an [open source project](https://github.com/npm/npm) to help JavaScript developers easily share packaged modules of code.
5+
* npm is the package manager for [Node.js](https://nodejs.org/). It was created in 2009 as an [open source project](https://github.com/npm/npm) to help JavaScript developers easily share packaged modules of code.
66
* The npm Registry is a public collection of packages of open-source code for Node.js, [front-end web apps](http://www.ember-cli.com/), [mobile apps](https://cordova.apache.org/), [robots](https://tessel.io/), [routers](https://linerate.f5.com/), and countless other needs of the JavaScript community.
77
* npm is the command line client that allows developers to install and publish those packages.
88
* npm, Inc. is the company that hosts and maintains all of the above.

content/company/private-npm.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,36 @@
22
## Publish, share and install proprietary code easily
33

44
[Private modules](https://www.npmjs.com/npm/private-packages) are ordinary npm packages that only you, and people you select,
5-
can view, install, and publish. You publish them in your namespace or your team's namespace, just by giving them a name in package.json:
5+
can view, install, and publish. You publish them in your namespace or your team's namespace by giving them a name in package.json:
66

77
```json
88
{
99
"name": "@myuser/mypackage"
1010
}
1111
```
1212

13-
You publish them with `npm publish`, just like any other package, and you install
13+
You publish them with `npm publish` just like any other package, and you install
1414
them by name:
1515

1616
```sh
1717
npm install @myuser/mypackage
1818
```
1919

20-
Once installed, use them by requiring them by name, just like any package:
20+
Once installed, use them by requiring them by name, just like any other package:
2121

2222
```js
2323
var mypackage = require('@myuser/mypackage');
2424
```
2525

2626
## Re-use your code
2727

28-
You re-use code between projects. npm and the registry make it really easy to
29-
share small modules of useful code with the world. But sometimes the code in that
30-
package is private, or sensitive, or just too specific to your needs for you to
31-
want to publish it to the public registry. Private packages are great for this.
28+
npm and the registry make it easy to share small modules of useful code with the world. However, sometimes the code in your package is private, sensitive, or just too specific to your needs for you to
29+
want to publish it to the public registry. Private packages allow you to share your code with a specific set of users, rather than the registry as a whole.
3230

3331
## Share proprietary code
3432

35-
You work in a team, or you work for clients. You want to be able to easily share
36-
your work, with the dependency management and version management that npm provides.
37-
By making it easy and granular to select who can see, install and publish packages,
33+
Whether you work in a team or you work for clients, you want to be able to privately share
34+
your work using the dependency management and version management that npm provides.
35+
By allowing you to control who can see, install and publish packages,
3836
[private packages](https://www.npmjs.com/npm/private-packages) make this easy.
3937

content/getting-started/creating-node-modules.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ featured: true
99

1010
Node.js modules are one kind of package which can be published to npm. When you create a new module, you want to start with the `package.json` file.
1111

12-
You can use `npm init` to create the `package.json`. It will prompt you for values for the `package.json` fields. The two required fields are name and version. You'll also want to have a value for main. You can use the default, `index.js`.
12+
You can use `npm init` to create the `package.json`. It will prompt you for values for the `package.json` fields. The two required fields are 'name' and 'version'. You'll also want to have a value for 'main'. You can use the default, `index.js`.
1313

1414
If you want to add information for the author field, you can use the following format (email and web site are both optional):
1515

@@ -29,8 +29,8 @@ exports.printMsg = function() {
2929

3030
Test:
3131

32-
1. Publish your package to npm
33-
1. Make a new directory outside of your project and cd into it
34-
1. Run `npm install <package>`
35-
1. Create a test.js file which requires the package and calls the method
32+
1. Publish your package to npm.
33+
1. Make a new directory outside of your project and cd into it.
34+
1. Run `npm install <package>`.
35+
1. Create a test.js file which requires the package and calls the method.
3636
1. Run `node test.js`. The message should be output.

content/getting-started/what-is-npm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ featured: true
99

1010
<iframe width="670" height="480" src="https://www.youtube.com/embed/x03fjb2VlGY" frameborder="0" allowfullscreen></iframe>
1111

12-
<p>If you've been working with JavaScript for a while, you might have heard of npm: npm makes it easy for JavaScript developers to share the code that they've created to solve particular problems, and for other developers to reuse that code in their own applications.</p>
12+
<p>If you've been working with JavaScript for a while, you might have heard of npm. npm makes it easy for JavaScript developers to share the code that they've created to solve particular problems, and for other developers to reuse that code in their own applications.</p>
1313

14-
<p>Once you're depending on this code from other developers, npm makes it really easy to check to see if they've made any updates to it, and to download those updates when they're made.</p>
14+
<p>Once you're depending on this code from other developers, npm makes it easy to check to see if they've made any updates to it and to download those updates when they're made.</p>
1515

16-
<p>These bits of reusable code are called packages, or sometimes modules. A package is just a directory with one or more files in it, that also has a file called "package.json" with some metadata about this package. A typical application, such as a website, will depend on dozens or hundreds of packages. These packages are often small. The general idea is that you create a small building block which solves one problem and solves it well. This makes it possible for you to compose larger, custom solutions out of these small, shared building blocks.</p>
16+
<p>These bits of reusable code are called packages or modules. A package is just a directory with one or more files in it, along with a file called "package.json" that contains metadata about the package. A typical application, such as a website, will depend on dozens or hundreds of packages. These packages are often small. The general idea is that you create a small building block which solves one problem well. This makes it possible for you to compose larger custom solutions out of these small building blocks.</p>
1717

18-
<p>There's lots of benefits to this. It makes it possible for your team to draw on expertise outside of your organization by bringing in packages from people who have focused on particular problem areas. But even if you don't reuse code from people outside of your organization, using this kind of module based approach can actually help your team work together better, and can also make it possible to reuse code across projects.</p>
18+
<p>There's lots of benefits to this; It makes it possible for your team to draw on expertise outside of your organization by bringing in packages from people who have focused on particular problem areas. Even if you don't reuse code from people outside of your organization, using this kind of module-based approach can help your team work together better and make it possible to reuse code across projects.</p>
1919

20-
<p>You can find packages to help you build your application by browsing the npm website. When you're browsing the website, you'll find different kinds of packages. You'll find lots of node modules. npm started as the node package manager, so you'll find lots of modules which can be used on the server side. There are also lots of packages which add commands for you to use in the command line. And at this point you can find a number of packages which can be used in the browser, on the front end.</p>
20+
<p>You can find packages to help you build your application by browsing the npm website. When you're browsing the website, you'll find lots of Node modules. npm started as the Node package manager, so you'll find lots of modules which can be used on the server side. There are also lots of packages which add commands for you to use in the command line. You'll also find packages which can be used on the front end.</p>
2121

22-
<p>So now that you have an idea of what npm can do, let's talk about how it works. When people talk about npm, they can be talking about one of three things. They could be talking about the website, which we've just been looking at. Or they could be talking about the registry, which is a big database of information about packages that people are sharing. Or the third thing they could be talking about is the client: when a developer decides to share their code, they use the npm client which is installed on their computer to publish that code up to the registry. And once there's an entry for this package in the registry, then other developers can use their npm clients to install the package from the registry. The entry in the registry for this package is also reflected on the website, where there's a page dedicated to this new package.</p>
22+
<p>Now that you have an idea of what npm can do, let's talk about how it works. When people talk about npm, they can be talking about one of three things. They could be talking about the website, which we've just been looking at. Or they could be talking about the registry, which is a big database of information about packages that people are sharing. Or the third thing they could be talking about is the client: when a developer decides to share their code, they use the npm client which is installed on their computer to publish that code up to the registry. And once there's an entry for this package in the registry, then other developers can use their npm clients to install the package from the registry. The entry in the registry for this package is also reflected on the website, where there's a page dedicated to this new package.</p>
2323

2424
<p>So that's what npm is. It's a way to reuse code from other developers, and also a way to share your code with them, and it makes it easy to manage the different versions of code.</p>

0 commit comments

Comments
 (0)