file2site 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OnePage
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,54 @@
1
+ ![MIT License](https://img.shields.io/badge/license-MIT-green.svg)
2
+
3
+ # File2Site
4
+
5
+ A zero-config CLI that turns a single Markdown, HTML, JSON, or YAML file into a beautiful live website.
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ npx file2site README.md
11
+ ```
12
+
13
+ ## What it does
14
+
15
+ - Starts a local server on a random available port
16
+ - Renders Markdown with GitHub-flavored features, syntax highlighting, and a table of contents
17
+ - Renders JSON and YAML with syntax highlighting
18
+ - Auto-reloads instantly on file saves
19
+ - Opens your browser automatically (disable with `--no-open`)
20
+
21
+ ## CLI
22
+
23
+ ```bash
24
+ file2site <file>
25
+ ```
26
+
27
+ Options:
28
+
29
+ - `--port <number>`: use a specific port
30
+ - `--no-open`: disable auto-open
31
+ - `--export`: output a static HTML file and exit
32
+
33
+ ## Use Cases
34
+
35
+ - Polished docs preview without configuration
36
+ - Quick landing page from a single markdown file
37
+ - Sharing a single HTML prototype without setting up a framework
38
+ - README walkthroughs that look production-ready
39
+
40
+ ## Non-Goals
41
+
42
+ - Multiple pages
43
+ - Themes or configuration files
44
+ - Framework integration
45
+ - Hosting, accounts, or deployment features
46
+
47
+ ## Notes
48
+
49
+ - `--export` writes `file.html` for Markdown inputs and `file.html.file2site.html` for HTML inputs to avoid overwriting.
50
+ - Supported input extensions: `.md`, `.html`, `.json`, `.yaml`, `.yml`.
51
+
52
+ ## License
53
+
54
+ MIT