mordorjs 0.0.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Péter Vívó
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+ # mordor.js
2
+
3
+ `mordor.js` is a toolkit and npm module around the Mordor file formats and 1W-style JavaScript transformations, also able to create modor-code and mordor-project files.
4
+
5
+ ## What I Built
6
+ Everybody knows that productivity is measured in LOC. The more lines of code you produce, the more serious your project must be. Clean, readable code matters too, of course. And surely you remember the old convention that a line should stay under 80 characters.
7
+
8
+ We chose to move beyond that.
9
+
10
+ In mordor.js, there is only one rule:
11
+
12
+ the maximum line length is 1.
13
+
14
+ That is all.
15
+
16
+ Simple, isn’t it?
17
+
18
+ ## 1D programming language
19
+ Because the whole codebase is a single vertical line, it comes with many advantages:
20
+
21
+ - Long lines are no longer a problem
22
+ - AI has a much harder time reading your code
23
+ - Your editor width becomes irrelevant
24
+ - Horizontal scrolling is gone forever
25
+ - Screenshot-based code theft becomes much less practical
26
+ - Your daily LOC can grow to legendary numbers
27
+ - Code review becomes an act of courage
28
+
29
+
30
+ ## Usage
31
+
32
+ ```bash
33
+ ./mordor.js [options] [file]
34
+ ```
35
+
36
+ If no file is provided, it reads from **stdin** (piped text) or defaults to the internal "MordorJS" manifesto.
37
+
38
+ ## Options
39
+
40
+ | Option | Long Form | Description |
41
+ | :--- | :--- | :--- |
42
+ | `-w <num>` | `--wide <num>` | **Wrap into Columns:** Re-wraps the text into exactly `<num>` vertical strips. Words are preserved and distributed evenly. |
43
+ | `-s` | | **Spacing:** Adds an empty space strip between each data strip for better readability. |
44
+ | `-r [num]` | `--random [num]` | **Randomize:** Adds random vertical spacing (0 to `num`) before the first word and between every word in a strip. Default `num` is 3. |
45
+ | `-b64` | `--base64` | **Base64 Mode:** Encodes input to Base64 first. Uses "virtual words" (2-7 chars) to allow wrapping and randomization. |
46
+ | `-c` | `--copy` | **Clipboard:** Automatically copies the final vertical output to your system clipboard. |
47
+
48
+ ## License
49
+
50
+ This repository uses a split-license model.
51
+
52
+ ### Source code
53
+ All source code of the `mordor.js` program is licensed under the MIT License.
54
+
55
+ See: [LICENSE](./LICENSE)
56
+
57
+ ### Specifications, format descriptions, and examples
58
+ The following are licensed under CC BY 4.0:
59
+
60
+ - `mordor-code-js` format description
61
+ - `mordor-code` format description
62
+ - `mordor-project` format description
63
+ - examples, documentation, and format-spec texts unless stated otherwise
64
+
65
+ See: [SPEC-LICENSE](./SPEC-LICENSE)
66
+
67
+ ## Notes
68
+
69
+ The license of a file depends on its nature:
70
+
71
+ - program source files are MIT
72
+ - specification texts and examples are CC BY 4.0 unless explicitly marked otherwise
73
+
74
+ ## Copyright
75
+
76
+ Copyright (c) 2026 Péter Vívó