Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Updating the Documentation to ES6+

Open
#787 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, node.js
Domain
documentation

Research direction

Start by reviewing the documentation examples in the repository and identify uses of var, callbacks, and CommonJS imports. Update the examples to use const or let, Promises where appropriate, and optionally ES6 imports; done means the documentation consistently demonstrates the requested ES6+ syntax.

Written by the indexing model from the issue text.

Description

Adding ES6+ Syntax to the Examples

Currently, examples in the documentation use the old version of JavaScript. Namely the pre ES6 version with some practices already abandoned in most of the projects, such as using const & let instead of var, the use of callbacks.

Possible Changes
  • Variables initiated with var can be changed to const or let depending on the context
  • Promises can be used, instead of callbacks
  • Optionally, "commonjs" importing technique, can be changed with ES6 import keyword
Dominant language
JavaScript
Stars
18.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from auth0/node-jsonwebtoken

All issues in auth0/node-jsonwebtoken

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.