markdown
Lint JavaScript code blocks in Markdown documents
File Explorer
- bug-report.yml
- change.yml
- config.yml
- docs.yml
- new-rule.yml
- rule-change.yml
- add-to-triage.yml
- ci-bun.yml
- ci-package-manager.yml
- ci.yml
- release-please.yml
- stale.yml
- update-readme.yml
- CODEOWNERS
- renovate.json5
- markdown.md
- fenced-code-language.md
- fenced-code-meta.md
- heading-increment.md
- no-bare-urls.md
- no-duplicate-definitions.md
- no-duplicate-headings.md
- no-empty-definitions.md
- no-empty-images.md
- no-empty-links.md
- no-html.md
- no-invalid-label-refs.md
- no-missing-atx-heading-space.md
- no-missing-label-refs.md
- no-missing-link-fragments.md
- no-multiple-h1.md
- no-reference-like-urls.md
- no-reversed-media-syntax.md
- no-space-in-emphasis.md
- no-unused-definitions.md
- require-alt-text.md
- table-column-count.md
- migration.md
- eslint.config.mjs
- package.json
- README.md
- eslint.config.mjs
- package.json
- README.md
- configure-file-name-from-block-meta.md
- markdown-language.js
- markdown-source-code.js
- fenced-code-language.js
- fenced-code-meta.js
- heading-increment.js
- no-bare-urls.js
- no-duplicate-definitions.js
- no-duplicate-headings.js
- no-empty-definitions.js
- no-empty-images.js
- no-empty-links.js
- no-html.js
- no-invalid-label-refs.js
- no-missing-atx-heading-space.js
- no-missing-label-refs.js
- no-missing-link-fragments.js
- no-multiple-h1.js
- no-reference-like-urls.js
- no-reversed-media-syntax.js
- no-space-in-emphasis.js
- no-unused-definitions.js
- require-alt-text.js
- table-column-count.js
- index.js
- processor.js
- types.js
- types.ts
- util.js
- all.test.js
- eslint.config.js
- eslintrc.json
- filename.md
- long.md
- recommended.js
- recommended.json
- markdown-language.test.js
- markdown-source-code.test.js
- exports.test.js
- fenced-code-language.test.js
- fenced-code-meta.test.js
- heading-increment.test.js
- no-bare-urls.test.js
- no-duplicate-definitions.test.js
- no-duplicate-headings.test.js
- no-empty-definitions.test.js
- no-empty-images.test.js
- no-empty-links.test.js
- no-html.test.js
- no-invalid-label-refs.test.js
- no-missing-atx-heading-space.test.js
- no-missing-label-refs.test.js
- no-missing-link-fragments.test.js
- no-multiple-h1.test.js
- no-reference-like-urls.test.js
- no-reversed-media-syntax.test.js
- no-space-in-emphasis.test.js
- no-unused-definitions.test.js
- require-alt-text.test.js
- table-column-count.test.js
- cjs-import.test.cts
- tsconfig.json
- tsconfig.legacy.json
- types.test.ts
- plugin.test.js
- processor.test.js
- util.test.js
- build-rules.js
- update-rules-docs.js
- .c8rc
- .editorconfig
- .git-blame-ignore-revs
- .gitignore
- .npmrc
- .prettierignore
- .release-please-manifest.json
- CHANGELOG.md
- eslint.config-content.js
- eslint.config.js
- jsr.json
- knip.json
- LICENSE
- package.json
- prettier.config.js
- README.md
- release-please-config.json
- screenshot.png
- tsconfig.json
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
bun add
View Details ▼
bun add
Add and install new dependencies to the current project.
bun {{[a|add]}} {{package}}
Install a single package:
bun {{[a|add]}} {{package1 package2 ...}}
Install multiple packages:
bun {{[a|add]}} {{git_url}}
Install from a Git repository:
deno
View Details ▼
deno
A secure runtime for JavaScript, TypeScript, and WebAssembly.
Includes dependency management using `npm` or `jsr`, and tooling like bench, bundle, doc, and coverage.
deno
Start a REPL (interactive shell, also known as Read-Eval-Print Loop):
deno init sample && cd sample && deno test
Start a new project named sample and test it:
deno run {{path/to/file.ts}}
Run a file securely. It will ask (if needed) to allow net, read, etc:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
npm test
View Details ▼
npm test
This command is an alias of `npm run test`.
tldr npm run
View documentation for the original command:
pnpm
View Details ▼
pnpm
Fast, disk space efficient package manager for Node.js.
Manage Node.js projects and their module dependencies.
pnpm init
Create a `package.json` file:
pnpm {{[i|install]}}
Download all the packages listed as dependencies in `package.json`:
pnpm add {{module_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
yarn
View Details ▼
yarn
JavaScript and Node.js package manager alternative.
yarn global add {{module_name}}
Install a module globally:
yarn install
Install all dependencies referenced in the `package.json` file (the `install` is optional):
yarn add {{module_name}}@{{version}}
Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
