Skip to content

Parser Plugins

Rintenki supports non-HTML files via optional parser plugins.

Available Plugins

PluginSyntaxInstall
@rintenki/vue-parserVue SFC (.vue)npm i @rintenki/vue-parser
@rintenki/jsx-parserJSX/TSX (.jsx, .tsx)npm i @rintenki/jsx-parser
@rintenki/erb-parsereRuby (.erb)npm i @rintenki/erb-parser
@rintenki/astro-parserAstro (.astro)npm i @rintenki/astro-parser

Auto-Detection

Parsers are auto-detected from installed packages. Simply install the plugin and rintenki will use it automatically for matching file extensions.

Explicit Configuration

You can also configure parsers explicitly in .rintenkirc.json:

json
{
  "parser": {
    ".vue": "@rintenki/vue-parser"
  }
}

Usage

bash
# Vue files
npx rintenki "src/**/*.vue"

# JSX/TSX files
npx rintenki "src/**/*.tsx"

# eRuby files
npx rintenki "app/views/**/*.erb"

# Astro files
npx rintenki "src/**/*.astro"

Released under the MIT License.