HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://docs.npmjs.com/about-package-readme-files/
access-control-allow-origin: *
expires: Fri, 25 Jul 2025 09:58:20 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: 40A4:090F:3E5B9:454D5:688352DF
accept-ranges: bytes
age: 0
date: Fri, 25 Jul 2025 09:48:20 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210064-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753436900.109133,VS0,VE216
vary: Accept-Encoding
x-fastly-request-id: 156b445ae37432b33c3e368e7595824a3fb8a370
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Thu, 24 Jul 2025 18:39:06 GMT
access-control-allow-origin: *
etag: W/"68827dca-5e55d"
expires: Fri, 25 Jul 2025 04:07:27 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 5C72:3FF97:16BF2:1E1D1:688300A3
accept-ranges: bytes
age: 0
date: Fri, 25 Jul 2025 09:48:20 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210064-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1753436900.338714,VS0,VE210
vary: Accept-Encoding
x-fastly-request-id: 3532683af495fed5be343a73cbc45d03ab3b32d0
content-length: 42398
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