Web-based template mapper for terminals. Map your website (blog, portfolio, project wiki, etc) contents to plain text, shell scripts, Python or others.
Also, You can share the URL and anybody can show or run the response via curl
.
curl "https://redeqo.deta.dev/?s=https://0xtadash1.github.io/redeqo/"
or colorful version
echo -e """$(curl -s "https://redeqo.deta.dev/?s=https://0xtadash1.github.io/redeqo/&d=pj-intro-card.ansi.njk")"""
The first defines the template to be used by <meta name="redeqo-dst" content="...">
in ?s=...
HTML.
The second overrides it with another template in &d=...
query.
- Configuring
- Njk
env
by<meta>
/query - JSDom's options by
<meta>
/query-
runScripts
-
- Njk
- Custom Filtters/Tags(Extensions)
- ANSI Color Codes (use
chalk
module) -
strip
: Alias forstriptags(true)
-
sindent(n=4, doIndentFirstLine=false)
:strip()
andindent()
-
si-wrap(len, n=4, doIndentFirstLine=false)
:sindent()
and Line-wrapping.len
is line-length.
- ANSI Color Codes (use
- Other
- RootPage without queries such as
?src=...
- User-Agent == curl
- else
- Documents
- Sample/Default templates
- ANSI Colored
- Bash
- Python
- RootPage without queries such as
- Start server
IS_DEBUG=true node index.js
- Test
curl
curl "http://localhost:3000/"
orredeqo -- Web-based template mapper for terminals https://github.com/0xTadash1/redeqo
curl "https://localhost:3000/?s=https://0xtadash1.github.io/redeqo/"
============================================================================= redeqo ----------------------------------------------------------------------------- Get a different look for your website, specialized for terminals! --- Web-based template mapper for terminals. Map your website (blog, portfolio, project wiki, etc) contents to plain text, shell scripts, Python or others. Also, You can share the URL and anybody can show or run the response via curl. --- Home https://0xTadash1.github.io/redeqo Doc https://github.com/0xTadash1/redeqo/blob/main/README.md Repo https://github.com/0xTadash1/redeqo License MIT https://github.com/0xTadash1/redeqo/blob/main/LICENSE =============================================================================
deta deploy
These are case-sensitive.
IS_DEBUG
, default:false
true
|| anything else (null,false
,False
,0
,1
,True
, etc.)
PORT
, default:3000
- numeric || anything else