<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>酢ろぐ！</blog_title>
  <blog_url>https://blog.ch3cooh.jp/</blog_url>
  <categories>
    <anon>開発</anon>
    <anon>開発-Node.js</anon>
  </categories>
  <description>コマンドラインのパラメータを取得する node boo.ts /PATH/foo.json を実行したとき、3番目のパラメータ(つまり foo.json の部分)を取得したい。 console.log(process.argv); 上記の js を書くと、ターミナルに配列が出力された。 [ '/Users/ch3cooh/.nodebrew/node/v12.14.0/bin/node', '/Users/ch3cooh/scripts/hoge.ts' ] JSONファイルを読み込む パスを取得することができたので、次に JSONとしてファイルを読み込んでみたい。 'use strict';…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ch3cooh.jp%2Fentry%2Fnodejs%2Fget_command_line_parameters&quot; title=&quot;Node.jsで コマンドラインのパラメータを取得する - 酢ろぐ！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-08 17:10:26</published>
  <title>Node.jsで コマンドラインのパラメータを取得する</title>
  <type>rich</type>
  <url>https://blog.ch3cooh.jp/entry/nodejs/get_command_line_parameters</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
