Righteous is a Kary Foundation coding style based code formatter for TypeScript and JavaScript, using TypeScript's own compiler service APIs. It enforces Kary Foundation's indentation and spacing policies. This package is version 1.1.3 with no major updates since its initial release. It is primarily intended for use within Kary Foundation's IDEs and editors, not as a general-purpose formatter like Prettier. The package ships with TypeScript declaration files but lacks active maintenance.
npm install righteousNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import the formatter, call it with source code and optional options, and get formatted output.
Install TypeScript in your project: npm install typescript
Consider using a modern formatter like Prettier for long-term maintenance.
Use ESM imports or const righteous = require('righteous').default;Use import righteous from 'righteous' (ESM) or const righteous = require('righteous').default;Run npm install typescript
Ensure righteous is installed and referenced in tsconfig.json. If needed, add reference: /// <reference path="node_modules/righteous/typings/righteous.d.ts" />