<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexander</title>
    <description>The latest articles on DEV Community by Alexander (@xnbox1).</description>
    <link>https://dev.to/xnbox1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F683648%2Fceb470ad-28d8-436e-bcd7-c0b13be88bf3.png</url>
      <title>DEV Community: Alexander</title>
      <link>https://dev.to/xnbox1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xnbox1"/>
    <language>en</language>
    <item>
      <title>DeepfakeHTTP v6.3.1</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Mon, 25 Oct 2021 19:16:50 +0000</pubDate>
      <link>https://dev.to/xnbox1/deepfakehttp-v631-462h</link>
      <guid>https://dev.to/xnbox1/deepfakehttp-v631-462h</guid>
      <description>&lt;p&gt;A new version of &lt;a href="https://github.com/xnbox/DeepfakeHTTP" rel="noopener noreferrer"&gt;DeepfakeHTTP&lt;/a&gt; is out!&lt;br&gt;
I decided to add a new &lt;code&gt;--dir&lt;/code&gt; option, allowing to host static content as static servers do.&lt;br&gt;
However, unlike regular static servers, DeepfakeHTTP can also host executable stuff, such as shell scripts or JavaScript. In order to have JavaScript executed on the server side you need to specify &lt;code&gt;'use server'&lt;/code&gt; at the beginning of the code ( similar to the well-known &lt;code&gt;'use strict'&lt;/code&gt; ).&lt;/p&gt;

&lt;p&gt;Thank you to all the people who helped with advice, suggestions, and participation!&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/xnbox" rel="noopener noreferrer"&gt;
        xnbox
      &lt;/a&gt; / &lt;a href="https://github.com/xnbox/DeepfakeHTTP" rel="noopener noreferrer"&gt;
        DeepfakeHTTP
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>news</category>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>DeepfakeHTTP v6.1.1</title>
      <dc:creator>Alexander</dc:creator>
      <pubDate>Fri, 15 Oct 2021 10:20:55 +0000</pubDate>
      <link>https://dev.to/xnbox1/deepfakehttp-v611-241o</link>
      <guid>https://dev.to/xnbox1/deepfakehttp-v611-241o</guid>
      <description>&lt;p&gt;The new release of &lt;a href="https://github.com/xnbox/DeepfakeHTTP" rel="noopener noreferrer"&gt;DeepfakeHTTP&lt;/a&gt; brings new features.&lt;/p&gt;

&lt;p&gt;One of the cool new features is that templates can now be populated with data from an external &lt;strong&gt;JSON&lt;/strong&gt; file.&lt;br&gt;
Moreover, requests can modify this file dynamically using &lt;strong&gt;JavaScript&lt;/strong&gt; and give a full impression of a real server. At any time you can export a dump with updated JSON and use it in the future.&lt;/p&gt;

&lt;p&gt;In this release (v6.1.1):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;New option &lt;code&gt;--db &amp;lt;file|url&amp;gt;&lt;/code&gt; json/yaml/csv memory file to populate templates&lt;/li&gt;
&lt;li&gt;New option &lt;code&gt;--db-export &amp;lt;file&amp;gt;&lt;/code&gt; export memory to json file&lt;/li&gt;
&lt;li&gt;New option &lt;code&gt;--db-path &amp;lt;path&amp;gt;&lt;/code&gt; serve live memory file at specified context&lt;/li&gt;
&lt;li&gt;New option &lt;code&gt;--js &amp;lt;file|url&amp;gt;... &lt;/code&gt; JavaScript file(s) for script engine context&lt;/li&gt;
&lt;li&gt;New option &lt;code&gt;--no-bak&lt;/code&gt; disable backup old memory file before overwrite&lt;/li&gt;
&lt;li&gt;New response header &lt;code&gt;X-Handler-XGI&lt;/code&gt; XGI (Extended Gateway Interface) program&lt;/li&gt;
&lt;li&gt;New response header &lt;code&gt;X-Handler-CGI&lt;/code&gt; CGI (Common Gateway Interface) program&lt;/li&gt;
&lt;li&gt;New response header &lt;code&gt;X-Handler-JS&lt;/code&gt; JavaScript response handler function&lt;/li&gt;
&lt;li&gt;Default 'Not found' status changed from &lt;code&gt;400&lt;/code&gt; to &lt;code&gt;404&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cheatsheet page updated.&lt;/li&gt;
&lt;li&gt;Bug fixes&lt;/li&gt;
&lt;li&gt;Minor code enhancements&lt;/li&gt;
&lt;li&gt;Documentation updated&lt;/li&gt;
&lt;li&gt;Release on top of Tommy v10.0.10&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thank you to all the people who helped with advice, suggestions, and participation!&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/xnbox" rel="noopener noreferrer"&gt;
        xnbox
      &lt;/a&gt; / &lt;a href="https://github.com/xnbox/DeepfakeHTTP" rel="noopener noreferrer"&gt;
        DeepfakeHTTP
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>news</category>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
