<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CLI on ankit bahuguna</title>
    <link>https://ankitbahuguna.xyz/tags/cli/</link>
    <description>Recent content in CLI on ankit bahuguna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 02 Oct 2023 17:56:37 +0530</lastBuildDate>
    <atom:link href="https://ankitbahuguna.xyz/tags/cli/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Node VM</title>
      <link>https://ankitbahuguna.xyz/posts/trying-out-node-vm-module/</link>
      <pubDate>Mon, 02 Oct 2023 17:56:37 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/trying-out-node-vm-module/</guid>
      <description>I recently used Node&amp;rsquo;s VM module with a CLI tool to allow passing custom JavaScript via command line flags. The tool interacts with a REST API that returns JSON responses.
So for instance, we have a users end point that returns users. It accepts some filters but sometimes you may want to filter or transform the output in some way.
myclitool get users limit 10 [ { name: &amp;#39;jon&amp;#39;, email: &amp;#39;jon@doe.</description>
    </item>
  </channel>
</rss>
