
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
typescript-cached-transpile
Advanced tools
[](https://badge.fury.io/js/typescript-cached-transpile)
Monkey-patches the TypeScript compiler to use a disk cache for transpileModule
.
Intended for use solely with ts-node in transpileOnly
mode. It'll make things
faster.
TS_NODE_TRANSPILE_ONLY=true TS_NODE_COMPILER=typescript-cached-transpile ts-node ./src/index.ts
When required, it returns a monkey-patched version of the peer typescript
module.
The only change is the transpileModule
function. It will cache results on disk,
so subsequent invocations should be much faster.
Caching requires, and will only work, when the following requirements are met:
transpileModule
. Won't work if you're type-checking. (do that separately, e.g. tsc --noEmit
)If you need to programmatically customize the behavior, put your customizations in a JS file:
./my-cached-compiler.js
const {create} = require('typescript-cached-transpile');
module.exports = create({
/* options here */
});
...and pass the absolute path to that file as ts-node's compiler
option.
TS_NODE_TRANSPILE_ONLY=true TS_NODE_COMPILER=$PWD/my-cached-compiler.js ts-node ./src/index.ts
The cache directory can be set via environment variable TS_CACHED_TRANSPILE_CACHE
.
It should be an absolute path to avoid gotchas.
TS_NODE_TRANSPILE_ONLY=true TS_CACHED_TRANSPILE_CACHE=$PWD/.cache ts-node ./src/index.ts
FAQs
[](https://badge.fury.io/js/typescript-cached-transpile)
The npm package typescript-cached-transpile receives a total of 39,361 weekly downloads. As such, typescript-cached-transpile popularity was classified as popular.
We found that typescript-cached-transpile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.