@upstatement/twix-linux-x64 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +36 -0
  2. package/bin/twix +0 -0
  3. package/package.json +31 -0
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # @upstatement/twix
2
+
3
+ A formatter for Twig templates with HTML.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @upstatement/twix
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Format a file (in-place)
15
+ npx twix path/to/file.twig
16
+
17
+ # Format multiple files
18
+ npx twix "src/**/*.twig"
19
+
20
+ # Check if files are formatted (exit 1 if not)
21
+ npx twix --check path/to/file.twig
22
+
23
+ # Format from stdin
24
+ cat file.twig | npx twix --stdin
25
+ ```
26
+
27
+ ## Features
28
+
29
+ - **AST-based formatting** - Accurate formatting that understands Twig and HTML structure
30
+ - **Twig inside attributes** - Properly handles `{{ expressions }}` and `{% if %}` blocks in HTML attributes
31
+ - **Whitespace control** - Preserves `{%- -%}` and `{{- -}}` modifiers
32
+ - **Ignore blocks** - Use `{# twix:ignore-start #}` / `{# twix:ignore-end #}` to skip formatting
33
+
34
+ ## License
35
+
36
+ MIT
package/bin/twix ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@upstatement/twix-linux-x64",
3
+ "version": "0.1.0",
4
+ "description": "A formatter for Twig templates with HTML",
5
+ "bin": {
6
+ "twix": "bin/twix"
7
+ },
8
+ "os": [
9
+ "linux"
10
+ ],
11
+ "cpu": [
12
+ "x64"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Upstatement/twix.git"
17
+ },
18
+ "keywords": [
19
+ "twig",
20
+ "formatter",
21
+ "html",
22
+ "template",
23
+ "craft"
24
+ ],
25
+ "author": "Upstatement",
26
+ "license": "MIT",
27
+ "bugs": {
28
+ "url": "https://github.com/Upstatement/twix/issues"
29
+ },
30
+ "homepage": "https://github.com/Upstatement/twix#readme"
31
+ }