Scan your whole stack
Are you using ts-function-inliner?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.3
ts-function-inliner was last scanned on 24 Nov 2026 at version 0.2.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.3 LATEST | 24 Nov 2026 | No rules fired |
| 0.2.2 | 24 Nov 2026 | No rules fired |
Findings for v0.2.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Many projects choose to extract common shared logic into small helper functions. TypeScript projects often use small user-defined type guards to inform type narrowing. Unfortunately, the overhead of extracting logic into functions can hurt application performance before JIT optimizers fully kick in.[^1]
This TypeScript transformation plugin detects calls to small one-line functions and inlines them in the output JavaScript. The resultant code will function the same regardless of the transformation.
Given the following function:
export function isNotFalsy(value: unknown) {
return !!value;
}
Before:
export const value = isNotFalsy("Hello!");
After:
export const value = !!"Hello!";
Note: this transformer does not remove the original function declarations. Use a separate tool after the transform, such as Terser, if you'd like to configure that.
npm i ts-function-inliner
Per github.com/Microsoft/TypeScript/issues/14419, TSConfig plugins don't support transformers. However, you can use this in other pipelines.
Specify it as a custom transformer with gulp-typescript:
import gulp from "gulp";
import ts from "gulp-typescript";
import { transformerProgram } from "ts-function-inliner";
gulp.task("typescript", function () {
gulp
.src("src/**/*.ts")
.pipe(
ts({
getCustomTransformers: (program) => ({
before: [transformerProgram(program)],
}),
}),
)
.pipe(gulp.dest("lib"));
});
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks! ⚡️
💝 This package was templated with
create-typescript-appusing the Bingo framework.
[^1]: See Microsoft/TypeScript: Added some Type type predicates internally #50010, which caused a 1-2% performance hit in TypeScript.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.