Registry / developer tools / stc-cache

stc-cache

JSON →
library1.0.6jsnpmunverified

Cache utility for the stc static type checker, version 1.0.6, released as part of the stc ecosystem. Provides file-based caching to speed up repeated type checks. Only works within stc, minimal adoption, likely superseded or abandoned.

npm install stc-cache
INSTALL
IMPORT
SIG · STC-CACHE
S
stc-cache
developer toolsjavascriptv1.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import cache from 'stc-cache'
const cache = require('stc-cache')
ESM-only since Node >=4, but package likely ESM-incompatible
Cache
import { Cache } from 'stc-cache'
const { Cache } = require('stc-cache')
Named export for Cache class; commonjs require may fail
getCache
import { getCache } from 'stc-cache'
const getCache = require('stc-cache').getCache
Function to retrieve cache instance

Basic usage of stc-cache: storing and retrieving a simple object using set/get.

import cache from 'stc-cache'; // stc-cache is designed to be used within stc plugin context // Example: caching a computed value const key = 'myKey'; const value = { data: 'cached' }; cache.set(key, value); const cached = cache.get(key); console.log(cached); // { data: 'cached' }
Debug
Known issues
gotchaPackage is tied to stc ecosystem; standalone use outside stc plugin will fail.
fix
Use only within an stc plugin context.
affects: >=1.0.0
deprecatedstc project is no longer maintained; stc-cache is effectively abandoned.
fix
Migrate to a maintained alternative like TypeScript's built-in caching or a standalone cache library.
affects: >=1.0.0
gotchaNode.js engine >=4.0.0 required; no support for older or newer module systems.
fix
Ensure Node.js version meets requirement, but recommend upgrading to modern stack.
affects: 1.0.0
Errors
Common errors & fixes
Cannot find module 'stc-cache'
Package not installed or not in node_modules.
fix
npm install stc-cache
stc is not defined
stc-cache requires stc runtime environment.
fix
Install and run within an stc plugin, or use stc CLI.
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
stc-cache — npm install stc-cache · libregistry