
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
Zero dependency library to capture and parse stack traces in Node, Bun, Deno and more.
Install package:
# npm
npm install errx
# pnpm
pnpm install errx
import { captureRawStackTrace, captureStackTrace, parseError, parseRawStackTrace } from 'errx'
// returns raw string stack trace
captureRawStackTrace()
// returns parsed stack trace
captureStackTrace()
// parses the stack of an existing error (empty array if it has none)
parseError(error)
// parses a stack trace string
parseRawStackTrace(error.stack)
console.log(captureStackTrace())
// [{
// function: undefined,
// source: 'file:///code/danielroe/errx/playground/index.js',
// line: 5,
// column: 13
// }]
ParsedTraceinterface ParsedTrace {
column?: number
function?: string
line?: number
source: string
isAsync?: boolean
isConstructor?: boolean
isEval?: boolean
isNative?: boolean
raw?: string
}
function holds the bare function name; V8's async and new prefixes are surfaced as isAsync and isConstructor instead. Frames with no resolvable location (at Array.map (<anonymous>), at moduleEvaluation (native)) are kept, with isNative set and no line/column. For eval frames (at eval (eval at fn (file.js:1:2), <anonymous>:3:4)), isEval is set and source/line/column point at the innermost real file location rather than the position inside the evaluated code.
Absolute filesystem paths are normalised to file:// URLs, including Windows drive paths (C:\x\y.js becomes file:///C:/x/y.js) and UNC paths (\\server\share\x.js becomes file://server/share/x.js). Sources that already have a scheme are left untouched.
The is* flags are only present when true. raw holds the original stack trace line. Lines that are recognisably frames but whose shape cannot be parsed are still returned, with an empty source, so they can be rendered from raw.
corepack enablepnpm installpnpm devMade with ❤️
Published under MIT License.
FAQs
Zero dependency library to capture and parse stack traces in Node, Bun and Deno
The npm package errx receives a total of 2,431,300 weekly downloads. As such, errx popularity was classified as popular.
We found that errx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.