Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isuke/advanced-poe-filter
Advanced PoE Filter Compiler. Rich syntax for you.
https://github.com/isuke/advanced-poe-filter
compiler filter-of-kalandra path-of-exile pathofexile
Last synced: 15 days ago
JSON representation
Advanced PoE Filter Compiler. Rich syntax for you.
- Host: GitHub
- URL: https://github.com/isuke/advanced-poe-filter
- Owner: isuke
- License: mit
- Created: 2019-01-01T10:33:05.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T11:32:38.000Z (10 months ago)
- Last Synced: 2024-10-04T22:20:11.526Z (about 1 month ago)
- Topics: compiler, filter-of-kalandra, path-of-exile, pathofexile
- Language: JavaScript
- Homepage: https://github.com/isuke/advanced-poe-filter
- Size: 499 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advanced PoE Filter [![Test and Lint](https://github.com/isuke/advanced-poe-filter/actions/workflows/main.yml/badge.svg)](https://github.com/isuke/advanced-poe-filter/actions/workflows/main.yml) [!["git-consistent friendly"](https://img.shields.io/badge/git--consistent-friendly-brightgreen.svg)]("https://github.com/isuke/git-consistent") [![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)](https://raw.githubusercontent.com/isuke/git-consistent/main/LICENSE) [![npm](https://img.shields.io/npm/v/advanced-poe-filter.svg)](https://www.npmjs.com/package/advanced-poe-filter)
Advanced PoE Filter is used by [Filter of Kalandra](https://filter-of-kalandra.netlify.com/).
## What is this?
This is compiler. Convert **rich** filter syntax to PoE filter syntax.
###### input
```
Show "Map Section"
Class "Maps"SetBorderColor 200 100 50 123
SetTextColor 200 100 50 123
SetBackgroundColor 200 100 50 123Mixin "Rarity"
Show "Rare"
Rarity = RareSetBorderColor Negate()
SetTextColor Grayscale()
SetBackgroundColor Lighten(30%)
```###### output
```
################################################################################
# Map Section #
################################################################################
# Rarity is "Rare"
Show
Class = "Maps"
Rarity = Rare
SetFontSize 32
SetTextColor 125 125 125 123
SetBackgroundColor 218 144 107 123
SetBorderColor 55 155 205 123# Rarity is Any
Show
Class = "Maps"
SetFontSize 32
SetTextColor 200 100 50 123
SetBackgroundColor 200 100 50 123
SetBorderColor 200 100 50 123
```## Usage
```js
import { compile } from 'advanced-poe-filter'const result = compile(advancedScriptText)
```## deploy
```sh
$ npm run deploy
```