Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@1ib/cache

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1ib/cache

A TypeScript utility for caching results of method executions.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cache

A TypeScript utility for caching results of method executions.

class {
  @cache()
  async foo() {
    // ...
  }
}

Install

Node.js

Install using npm or other package managers:

npm install 1ib/cache

Import into your Node.js project:

// CommonJS
const { cache } = require("1ib/cache")

// ESM
import { cache } from "1ib/cache"

Deno

Install using JSR:

deno add 1ib/cache

#or

jsr add 1ib/cache

Then import into your Deno project:

import { cache } from "1ib/cache"

Bun

Install using this command:

bun add 1ib/cache

Import into your Bun project:

import { cache } from "1ib/cache"

Browser

It's recommended to import the minified version to save bandwidth:

import { cache } from "https://cdn.skypack.dev/1ib/cache?min"

However, you can also import the unminified version for debugging purposes:

import { cache } from "https://cdn.skypack.dev/1ib/cache"

License

This project is licensed under the MIT.

Author

kingcc

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc