lru.min

(β˜… 51)

πŸ”₯ An extremely fast and efficient LRU cache for JavaScript with high compatibility (including Browsers).

File Explorer

  • .editorconfig
  • .gitattributes
  • .gitignore
  • .npmrc
  • .prettierignore
  • .prettierrc
  • biome.json
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • codecov.yml
  • CONTRIBUTING.md
  • LICENSE
  • mcr.config.ts
  • package-lock.json
  • package.json
  • README.md
  • SECURITY.md
  • tsconfig.json

# Use via CDN

jsDelivr

jsDelivr 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 β–Ό

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 β–Ό

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:

πŸ”

npm

View Details β–Ό

JavaScript and Node.js package manager.
Manage Node.js projects and their module dependencies.
Some subcommands such as `install`, `run`, etc. have their own usage documentation.

npm init {{[-y|--yes]}}

Create a `package.json` file with default values (omit `--yes` to do it interactively):

npm {{[i|install]}}

Download all the packages listed as dependencies 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`:

πŸ”

resize

View Details β–Ό

Resize terminal size to the window size.

resize

Resize the terminal:

resize -s

Print terminal size:

// repository documentation