Registry / testing / anglr-formatter

anglr-formatter

JSON →
library1.0.0-beta.20200314180748jsnpmunverified

A code formatter for TypeScript, specifically designed for Anglr projects. This library provides automatic formatting capabilities tailored to the Anglr coding style. It is currently in beta (v1.0.0-beta.20200314180748) with limited updates. Its key differentiator is its integration with the Anglr ecosystem, unlike general formatters like Prettier.

npm install anglr-formatter
INSTALL
IMPORT
SIG · ANGLR-FORMATTER
A
anglr-formatter
testingjavascriptv1.0.0-beta.20200314180748
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AnglrFormatter
import { AnglrFormatter } from 'anglr-formatter'
const AnglrFormatter = require('anglr-formatter')
ESM-only; CommonJS require may not work.
format
import { format } from 'anglr-formatter'
import AnglFormatter from 'anglr-formatter'
Named export, not default.
FormatOptions
import { FormatOptions } from 'anglr-formatter'
TypeScript type export; may not be available in JavaScript.

Demonstrates basic usage: import format function, apply it to a code string with options, and log result.

import { format } from 'anglr-formatter'; const code = `const x: number = 1;`; const formatted = format(code, { indentSize: 4 }); console.log(formatted);
Debug
Known issues
deprecatedPackage is in beta and appears unmaintained; last published in 2020.
fix
Consider using Prettier or other maintained formatters.
affects: >=1.0.0-beta.20200314180748
gotchaAnglr-specific formatting rules may conflict with standard TypeScript linting rules.
fix
Disable conflicting ESLint rules or adjust formatter configuration.
affects: *
Errors
Common errors & fixes
Cannot find module 'anglr-formatter'
Package not installed or not properly resolved.
fix
npm install anglr-formatter
TypeError: formatter.format is not a function
Incorrect usage of the exported API.
fix
Check documentation for correct method.
Upgrade
Version history
1.0.0-beta.20200314180748latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
31
OpenAI (training)
1
Resources
anglr-formatter — npm install anglr-formatter · libregistry