lru.min
π₯ An extremely fast and efficient LRU cache for JavaScript with high compatibility (including Browsers).
File Explorer
- codeql-config.yml
- bot_stale.yml
- cd_publish.yml
- ci_benchmark.yml
- ci_build.yml
- ci_bun.yml
- ci_codeql.yml
- ci_deno.yml
- ci_lint.yml
- ci_linux.yml
- ci_node.yml
- ci_osx.yml
- ci_windows.yml
- FUNDING.yml
- settings.json
- index.cjs
- index.mjs
- package-lock.json
- package.json
- README.md
- worker.cjs
- worker.mjs
- index.ts
- iterations.test.ts
- memory.test.ts
- onEviction.test.ts
- order.test.ts
- quickstart.test.ts
- resize.test.ts
- size.test.ts
- types.test.ts
- browserfy.ts
- .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
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:
npm
View Details βΌ
npm
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
Resize terminal size to the window size.
resize
Resize the terminal:
resize -s
Print terminal size:
