HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://docs.npmjs.com/about-package-readme-files/
access-control-allow-origin: *
expires: Wed, 30 Jul 2025 10:22:56 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: F4B6:29FBE4:162E64:1A009E:6889F028
accept-ranges: bytes
age: 0
date: Wed, 30 Jul 2025 10:12:56 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210037-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753870376.398581,VS0,VE210
vary: Accept-Encoding
x-fastly-request-id: 301305e15c31d8d380e2e0918c46743b7cbb1155
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Mon, 28 Jul 2025 14:33:25 GMT
access-control-allow-origin: *
etag: W/"68878a35-606e2"
expires: Wed, 30 Jul 2025 04:01:16 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 2BE3:E4D41:10B5C3:13E9C2:688996AD
accept-ranges: bytes
age: 254
date: Wed, 30 Jul 2025 10:12:56 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210037-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1753870377.627719,VS0,VE1
vary: Accept-Encoding
x-fastly-request-id: 34f451b9828cbc5879565a7ebcb113ddac70f13d
content-length: 42715
About package README files | npm Docs Site navigation Getting started Setting up your npm user account Managing your npm user account Paying for your npm user account Configuring your local environment Troubleshooting Packages and modules Introduction to packages and modules Contributing packages to the registry Updating and managing your published packages Getting packages from the registry Securing your code Integrations Integrating npm with external services Organizations Creating and managing organizations Paying for your organization Managing organization members Managing teams Managing organization packages npm CLI CLI Commands Configuring npm Using npm GitHub
See Details Table of contents We highly recommend including a README.md
file in your package directory as it helps developers find your package on npm and have a good experience using your code in their projects. In most cases README.md
files include directions for installing , configuring , and using the code in your package; as well as any other information a user may find helpful. Just like in any GitHub repository, the README.md
file will be rendered on the package's page.
An npm package README.md
file must be in the root-level directory of the package.
In a text editor, in your package root directory, create a file called README.md
.
In the README.md
file, add useful information about your package.
Save the README.md
file.
Note: The file extension .md
indicates a Markdown file. For more information about Markdown, see the GitHub Guide "Mastering Markdown ".
The README.md
file will only be updated on the package page when you publish a new version of your package. To update your README.md
file:
In a text editor, update the contents of the README.md
file.
Save the README.md
file.
On the command line, in the package root directory, run the following commands:
npm version patch
npm publish