stackoverflow-tutorial
stackoverflow-tutorial
File Explorer
- answer.ts
- collection.ts
- downvote.ts
- FetchAnswers.ts
- FetchQuestion.ts
- FetchUser.ts
- Question.ts
- Tag.ts
- upvote.ts
- user.ts
- page.tsx
- page.tsx
- layout.tsx
- page.tsx
- page.tsx
- page.tsx
- loading.tsx
- page.tsx
- loading.tsx
- page.tsx
- loading.tsx
- page.tsx
- page.tsx
- page.tsx
- layout.tsx
- route.ts
- favicon.ico
- globals.css
- layout.tsx
- AskEditQuestion.tsx
- TagInput.tsx
- CustomPagination.tsx
- Filters.tsx
- Metric.tsx
- MobileFilters.tsx
- NoResult.tsx
- ParseHTML.tsx
- QuestionCard.tsx
- Votes.tsx
- AddTag.tsx
- Header.tsx
- LeftSidebar.tsx
- RightSidebar.tsx
- ModeToggle.tsx
- theme-provider.tsx
- badge.tsx
- button.tsx
- dropdown-menu.tsx
- form.tsx
- input.tsx
- label.tsx
- menubar.tsx
- pagination.tsx
- select.tsx
- sheet.tsx
- skeleton.tsx
- sonner.tsx
- tabs.tsx
- textarea.tsx
- toast.tsx
- toaster.tsx
- use-toast.ts
- AllAnswers.tsx
- EditDeleteButtons.tsx
- Profile.tsx
- ProfileLink.tsx
- QuestionTab.tsx
- Searchbar.tsx
- TagCard.tsx
- UserAnswer.tsx
- UserCard.tsx
- filters.ts
- index.ts
- tags.ts
- db.ts
- utils.ts
- validation.ts
- schema.prisma
- account.svg
- arrow-left.svg
- arrow-right.svg
- arrow-up-right.svg
- au.svg
- avatar.svg
- bronze-medal.svg
- calendar.svg
- carbon-location.svg
- chevron-down.svg
- chevron-right.svg
- clock-2.svg
- clock.svg
- close.svg
- computer.svg
- currency-dollar-circle.svg
- downvote.svg
- downvoted.svg
- edit.svg
- eye.svg
- gold-medal.svg
- hamburger.svg
- home.svg
- job-search.svg
- like.svg
- link.svg
- location.svg
- message.svg
- mingcute-down-line.svg
- moon.svg
- question.svg
- search.svg
- sign-up.svg
- silver-medal.svg
- star-filled.svg
- star-red.svg
- star.svg
- stars.svg
- suitcase.svg
- sun.svg
- tag.svg
- trash.svg
- upvote.svg
- upvoted.svg
- user.svg
- users.svg
- auth-dark.png
- auth-light.png
- dark-illustration.png
- light-illustration.png
- next.svg
- vercel.svg
- prism.css
- theme.css
- .eslintrc.json
- .gitignore
- components.json
- env.local
- middleware.ts
- next.config.mjs
- package-lock.json
- package.json
- postcss.config.mjs
- README.md
- tailwind.config.ts
- 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
View Details ▼
bun
JavaScript runtime and toolkit.
Includes a bundler, a test runner, and a package manager.
bun init
Create a new Bun project in the current directory:
bun run {{path/to/file|script_name}}
Run a JavaScript file or a `package.json` script:
bun test
Run unit tests:
npm run
View Details ▼
npm run
Run a script.
npm run
List available scripts:
npm run {{script_name}}
Run a script:
npm run {{script_name}} -- {{argument}} {{--option}}
Pass arguments to a script:
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):
