|
| 1 | +--- |
| 2 | +title: npm Code of Conduct |
| 3 | +--- |
| 4 | +npm exists to facilitate sharing code, by making it easy for |
| 5 | +JavaScript module developers to publish and distribute packages. |
| 6 | + |
| 7 | +npm is a piece of technology, but more importantly, it is a community. |
| 8 | + |
| 9 | +We believe that our mission is best served in an environment that is |
| 10 | +friendly, safe, and accepting; free from intimidation or harassment. |
| 11 | + |
| 12 | +Towards this end, certain behaviors and practices will not be |
| 13 | +tolerated. |
| 14 | + |
| 15 | +## tl;dr |
| 16 | + |
| 17 | +* Be respectful. |
| 18 | +* We're here to help |
| 19 | +* Abusive behavior is never tolerated. |
| 20 | +* Data published to npm is hosted at the discretion of the service |
| 21 | + administrators, and may be removed. |
| 22 | +* Violations of this code may result in swift and permanent expulsion |
| 23 | + from the npm community. |
| 24 | + |
| 25 | +## Scope |
| 26 | + |
| 27 | +We expect all members of the npm community, including paid and unpaid |
| 28 | +agents, administrators, users, and customers of npm, Inc., to abide by |
| 29 | +this Code of Conduct at all times in all npm community venues, online |
| 30 | +and in person, and in one-on-one communications pertaining to npm |
| 31 | +affairs. |
| 32 | + |
| 33 | +This policy covers the usage of the npm registry, as well as the npm |
| 34 | +website, npm related events, and any other services offered by or on |
| 35 | +behalf of npm, Inc. (collectively, the "Service"). It also applies to |
| 36 | +behavior in the context of the npm Open Source project communities, |
| 37 | +including but not limited to public GitHub repositories, IRC channels, |
| 38 | +social media, mailing lists, and public events. |
| 39 | + |
| 40 | +This Code of Conduct is in addition to, and does not in any way |
| 41 | +nullify or invalidate, any other terms or conditions related to use of |
| 42 | +the Service. |
| 43 | + |
| 44 | +The definitions of various subjective terms such as "discriminatory", |
| 45 | +"hateful", or "confusing" will be decided at the sole discretion of |
| 46 | +the npm abuse team. |
| 47 | + |
| 48 | +## Friendly Harassment-Free Space |
| 49 | + |
| 50 | +We are committed to providing a friendly, safe and welcoming |
| 51 | +environment for all, regardless of gender identity, sexual |
| 52 | +orientation, ability, ethnicity, religion, age, physical |
| 53 | +appearance, body size, race, or similar personal characteristics. |
| 54 | + |
| 55 | +We ask that you please respect that people have differences of opinion |
| 56 | +regarding technical choices, and that every design or implementation |
| 57 | +choice carries a trade-off and numerous costs. There is seldom a |
| 58 | +single right answer. A difference of technology preferences is not a |
| 59 | +license to be rude. |
| 60 | + |
| 61 | +Disputes over package rights must be handled respectfully, according |
| 62 | +to the terms described in the [Disputes Policy][disputes]. |
| 63 | +There is never a good reason to be rude over package name disputes. |
| 64 | + |
| 65 | +Any spamming, trolling, flaming, baiting, or other attention-stealing |
| 66 | +behavior is not welcome, and will not be tolerated. |
| 67 | + |
| 68 | +Harassing other users of the Service is never tolerated, whether via |
| 69 | +public or private media. |
| 70 | + |
| 71 | +Avoid using offensive or harassing package names, nicknames, or other |
| 72 | +identifiers that might detract from a friendly, safe, and welcoming |
| 73 | +environment for all. |
| 74 | + |
| 75 | +Harassment includes, but is not limited to: harmful or prejudicial |
| 76 | +verbal or written comments related to gender identity, sexual |
| 77 | +orientation, ability, ethnicity, religion, age, physical |
| 78 | +appearance, body size, race, or similar personal characteristics; |
| 79 | +inappropriate use of nudity, sexual images, and/or sexually explicit |
| 80 | +language in public spaces; threats of physical or non-physical harm; |
| 81 | +deliberate intimidation, stalking or following; harassing photography |
| 82 | +or recording; sustained disruption of talks or other events; |
| 83 | +inappropriate physical contact; and unwelcome sexual attention. |
| 84 | + |
| 85 | +## Acceptable Use |
| 86 | + |
| 87 | +The Service administrators reserve the right to make judgment calls |
| 88 | +about what is and isn't appropriate in published packages, package names, |
| 89 | +user and organization names, and other public content. Package that |
| 90 | +violates the npm Service's |
| 91 | +[Acceptable Use][acceptable-use] |
| 92 | +rules including its |
| 93 | +[Acceptable Content][acceptable-content] |
| 94 | +rules will be deleted, at the discretion of npm. |
| 95 | + |
| 96 | +## Reporting Violations of this Code of Conduct |
| 97 | + |
| 98 | +Please select the method of contact you think is most appropriate for |
| 99 | +the form of violation: |
| 100 | + |
| 101 | +* For urgent security issues, please open a ticket at <https://npmjs.com/support>. |
| 102 | + Requests to un-publish packages are not usually considered urgent security |
| 103 | + issues, as it is possible to [un-publish a package][unpublish] |
| 104 | + within 24 hours of its first publish. Any publicly published package |
| 105 | + is [immediately replicated to thousands of third-party mirrors](http://blog.npmjs.org/post/101934969510/oh-no-i-accidentally-published-private-data-to), |
| 106 | + so any confidential information contained in a package should be considered |
| 107 | + immediately compromised. |
| 108 | + |
| 109 | +* If you believe someone is harassing you or is demonstrating |
| 110 | + some other form of malicious or inappropriate behavior, open a support |
| 111 | + ticket at https://npmjs.com/support. If this is the initial report of a problem, |
| 112 | + please include as much detail as possible. It is easiest for us |
| 113 | + to address issues when we have more context. |
| 114 | + |
| 115 | +* If you have concerns about a potential copyright violation, |
| 116 | + please refer to our [Copyright Policy][dmca] |
| 117 | + and take action as recommended by that policy. |
| 118 | + |
| 119 | +* If you think a package or other content is "squatting" on a name, |
| 120 | + follow the process described in the |
| 121 | + [Disputes Policy][disputes]. |
| 122 | + |
| 123 | +For any other issues, or if in doubt, [contact support](https://npmjs.com/support). |
| 124 | + |
| 125 | + |
| 126 | +## Consequences |
| 127 | + |
| 128 | +All content published to the Service, including user account |
| 129 | +credentials, is hosted at the sole discretion of the npm |
| 130 | +administrators. |
| 131 | + |
| 132 | +Unacceptable behavior from any community member, including sponsors, |
| 133 | +employees, customers, or others with decision-making authority, will |
| 134 | +not be tolerated. |
| 135 | + |
| 136 | +Anyone asked to stop unacceptable behavior is expected to comply |
| 137 | +immediately. |
| 138 | + |
| 139 | +If a community member engages in unacceptable behavior, the npm |
| 140 | +administrators may take any action they deem appropriate, up to and |
| 141 | +including a temporary ban or permanent expulsion from the community |
| 142 | +without warning (and without refund in the case of a paid event or |
| 143 | +service). |
| 144 | + |
| 145 | +## Addressing Grievances |
| 146 | + |
| 147 | +If you feel you have been falsely or unfairly accused of violating |
| 148 | +this Code of Conduct, you should notify npm, Inc. We will do our best |
| 149 | +to ensure that your grievance is handled appropriately. |
| 150 | + |
| 151 | +In general, we will choose the course of action that we judge as being |
| 152 | +most in the interest of fostering a safe and friendly community. |
| 153 | + |
| 154 | +## Contact Info |
| 155 | + |
| 156 | +Please open a support ticket at <https://npmjs.com/support> if you need to |
| 157 | +report a problem or address a grievance related to an abuse report. |
| 158 | + |
| 159 | +You are also encouraged to contact us if you are curious about |
| 160 | +something that might be "on the line" between appropriate and |
| 161 | +inappropriate content. We are happy to provide guidance to help you |
| 162 | +be a successful part of our community. |
| 163 | + |
| 164 | +## Changes |
| 165 | + |
| 166 | +This is a living document and may be updated from time to time. |
| 167 | +Please refer to the [git history for this |
| 168 | +document](https://github.com/npm/documentation/blob/main/content/policies/conduct.mdx) |
| 169 | +to view the changes. |
| 170 | + |
| 171 | +## Credit and License |
| 172 | + |
| 173 | +This Code of Conduct borrows heavily from the Stumptown Syndicate |
| 174 | +[Citizen's Code of Conduct](http://citizencodeofconduct.org/), and the |
| 175 | +[Rust Project Code of |
| 176 | +Conduct](https://www.rust-lang.org/conduct.html). |
| 177 | + |
| 178 | +This document may be reused under a [Creative Commons |
| 179 | +Attribution-ShareAlike |
| 180 | +License](https://creativecommons.org/licenses/by-sa/4.0/). |
| 181 | + |
| 182 | +[disputes]: /policies/disputes |
| 183 | +[acceptable-use]: /policies/open-source-terms#acceptable-use |
| 184 | +[acceptable-content]: /policies/open-source-terms#acceptable-content |
| 185 | +[unpublish]: /policies/unpublish |
| 186 | +[dmca]: /policies/dmca |
0 commit comments