{"library":"compatfactory","type":"library","category":null,"description":"compatfactory v4.0.4 is a TypeScript library that unifies the TypeScript Compiler API factory functions across all TypeScript versions (3.x, 4.x, 5.x) and makes them conform with the Node Factory API. It solves the problem of different method signatures and availability across TypeScript versions, especially after the removal of old factory functions in TS 5.0. The library provides a single `ensureNodeFactory` function that accepts a `NodeFactory` or a `typescript` module and returns a normalized `NodeFactory` compatible with the latest API. It is actively maintained with frequent updates to support new TypeScript versions (e.g., v5.6, v5.5, v5.3 in v4.0.0). Key differentiators: simple wrapper, tiny footprint, supports all TypeScript versions in one package. Requires Node >=18.20.0.","language":"javascript","status":"active","version":"4.0.4","tags":["javascript","typescript","NodeFactory","Compiler API","compat","normalize"],"last_verified":"Fri May 01","install":[{"cmd":"npm install compatfactory","imports":["import { ensureNodeFactory } from 'compatfactory'","import type { NodeFactory } from 'compatfactory'","import compatfactory from 'compatfactory'"]},{"cmd":"yarn add compatfactory","imports":[]},{"cmd":"pnpm add compatfactory","imports":[]}],"homepage":null,"github":"https://github.com/wessberg/compatfactory","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/compatfactory","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}