nadesiko3 3.4.26 → 3.5.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/batch/command.txt +91 -91
- package/core/.github/workflows/nodejs.yml +1 -1
- package/core/package.json +1 -1
- package/core/src/nako3.mjs +2 -4
- package/core/src/nako3.mts +2 -4
- package/core/src/nako_core_version.mjs +3 -3
- package/core/src/nako_core_version.mts +3 -3
- package/core/src/nako_gen.mjs +0 -45
- package/core/src/nako_gen.mts +0 -48
- package/core/src/nako_josi_list.mjs +10 -3
- package/core/src/nako_josi_list.mts +11 -3
- package/core/src/nako_lex_rules.mjs +14 -6
- package/core/src/nako_lex_rules.mts +14 -6
- package/core/src/nako_lexer.mjs +6 -1
- package/core/src/nako_lexer.mts +6 -1
- package/core/src/nako_parser3.mjs +16 -78
- package/core/src/nako_parser3.mts +12 -64
- package/core/src/nako_reserved_words.mjs +1 -1
- package/core/src/nako_reserved_words.mts +1 -1
- package/core/src/nako_types.mts +0 -2
- package/core/test/array_test.mjs +4 -0
- package/core/test/basic_test.mjs +4 -0
- package/package.json +4 -6
- package/release/_hash.txt +16 -16
- package/release/_script-tags.txt +13 -13
- package/release/josi.json +12 -12
- package/release/plugin_markup.js +1 -1
- package/release/plugin_markup.js.map +1 -1
- package/release/stats.json +1 -1
- package/release/version.js +1 -1
- package/release/version.js.map +1 -1
- package/release/wnako3.js +1 -1
- package/release/wnako3.js.map +1 -1
- package/release/wnako3webworker.js +1 -1
- package/release/wnako3webworker.js.map +1 -1
- package/src/nako_version.mjs +3 -3
- package/src/nako_version.mts +3 -3
- package/src/plugin_node.mjs +20 -7
- package/src/plugin_node.mts +16 -5
- package/core/src/nako_gen_async.mjs +0 -1659
- package/core/src/nako_gen_async.mts +0 -1732
package/batch/command.txt
CHANGED
|
@@ -673,110 +673,110 @@
|
|
|
673
673
|
|
|
674
674
|
■plugin_node(基本プラグイン,cnako,phpnako)
|
|
675
675
|
●ファイル入出力
|
|
676
|
-
| 関数 | 開 | Fを/Fから | ファイルFを開く | ひらく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
677
|
-
| 関数 | 読 | Fを/Fから | ファイFSを開く | よむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
678
|
-
| 関数 | バイナリ読 | Sを/Sから | ファイルSをバイナリ(Buffer)として開く | ばいなりよむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
679
|
-
| 関数 | 保存 | SをFへ/Fに | データSをファイルFヘ書き込む(文字コードはUTF-8) | ほぞん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
680
|
-
| 関数 | SJISファイル読 | Sを/Sから | SJIS形式のファイルSを読み込む | SJISふぁいるよむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
681
|
-
| 関数 | SJISファイル保存 | SをFへ/Fに | SをSJIS形式でファイルFへ書き込む | SJISふぁいるほぞん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
682
|
-
| 関数 | EUCファイル読 | Sを/Sから | euc-jp形式のファイルSを読み込む | EUCふぁいるよむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
683
|
-
| 関数 | EUCファイル保存 | SをFへ/Fに | Sをeuc-jp形式でファイルFへ書き込む | EUCふぁいるほぞん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
684
|
-
| 関数 | 起動待機 | Sを | シェルコマンドSを起動し実行終了まで待機する | きどうたいき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
685
|
-
| 関数 | 起動 | Sを | シェルコマンドSを起動 | きどう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
686
|
-
| 関数 | 起動時 | CALLBACKでSを | シェルコマンドSを起動 | きどうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
687
|
-
| 関数 | ブラウザ起動 | URLを | ブラウザでURLを起動 | ぶらうざきどう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
688
|
-
| 関数 | ファイル列挙 | Sの/Sを/Sで | パスSのファイル名(フォルダ名)一覧を取得する。ワイルドカード可能。「*.jpg;*.png」など複数の拡張子を指定可能。 | ふぁいるれっきょ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
689
|
-
| 関数 | 全ファイル列挙 | Sの/Sを/Sで | パスS以下の全ファイル名を取得する。ワイルドカード可能。「*.jpg;*.png」のように複数の拡張子を指定可能。 | ぜんふぁいるれっきょ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
690
|
-
| 関数 | 存在 | PATHが/PATHの | ファイルPATHが存在するか確認して返す | そんざい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
691
|
-
| 関数 | フォルダ存在 | PATHが/PATHの | ディレクトリPATHが存在するか確認して返す | ふぉるだそんざい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
692
|
-
| 関数 | フォルダ作成 | PATHの/PATHを/PATHに/PATHへ | ディレクトリPATHを作成して返す(再帰的に作成) | ふぉるださくせい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
693
|
-
| 関数 | ファイルコピー | AからBに/AをBへ | パスAをパスBへファイルコピーする | ふぁいるこぴー | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
694
|
-
| 関数 | ファイルコピー時 | CALLBACKでAからBに/AをBへ | パスAをパスBへファイルコピーしてcallbackを実行 | ふぁいるこぴーしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
695
|
-
| 関数 | ファイル移動 | AからBに/AをBへ | パスAをパスBへ移動する | ふぁいるいどう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
696
|
-
| 関数 | ファイル移動時 | CALLBACKでAからBに/AをBへ | パスAをパスBへ移動してcallbackを実行 | ふぁいるいどうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
697
|
-
| 関数 | ファイル削除 | PATHの/PATHを | パスPATHを削除する | ふぁいるさくじょ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
698
|
-
| 関数 | ファイル削除時 | CALLBACKでPATHの/PATHを | パスPATHを削除してcallbackを実行 | ふぁいるさくじょしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
699
|
-
| 関数 | ファイル情報取得 | PATHの/PATHから | パスPATHの情報を調べてオブジェクトで返す | ふぁいるじょうほうしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
700
|
-
| 関数 | ファイルサイズ取得 | PATHの/PATHから | パスPATHのファイルサイズを調べて返す | ふぁいるさいずしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
676
|
+
| 関数 | 開 | Fを/Fから | ファイルFを開く | ひらく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L102
|
|
677
|
+
| 関数 | 読 | Fを/Fから | ファイFSを開く | よむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L120
|
|
678
|
+
| 関数 | バイナリ読 | Sを/Sから | ファイルSをバイナリ(Buffer)として開く | ばいなりよむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L137
|
|
679
|
+
| 関数 | 保存 | SをFへ/Fに | データSをファイルFヘ書き込む(文字コードはUTF-8) | ほぞん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L146
|
|
680
|
+
| 関数 | SJISファイル読 | Sを/Sから | SJIS形式のファイルSを読み込む | SJISふぁいるよむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L168
|
|
681
|
+
| 関数 | SJISファイル保存 | SをFへ/Fに | SをSJIS形式でファイルFへ書き込む | SJISふぁいるほぞん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L179
|
|
682
|
+
| 関数 | EUCファイル読 | Sを/Sから | euc-jp形式のファイルSを読み込む | EUCふぁいるよむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L190
|
|
683
|
+
| 関数 | EUCファイル保存 | SをFへ/Fに | Sをeuc-jp形式でファイルFへ書き込む | EUCふぁいるほぞん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L200
|
|
684
|
+
| 関数 | 起動待機 | Sを | シェルコマンドSを起動し実行終了まで待機する | きどうたいき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L210
|
|
685
|
+
| 関数 | 起動 | Sを | シェルコマンドSを起動 | きどう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L219
|
|
686
|
+
| 関数 | 起動時 | CALLBACKでSを | シェルコマンドSを起動 | きどうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L231
|
|
687
|
+
| 関数 | ブラウザ起動 | URLを | ブラウザでURLを起動 | ぶらうざきどう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L241
|
|
688
|
+
| 関数 | ファイル列挙 | Sの/Sを/Sで | パスSのファイル名(フォルダ名)一覧を取得する。ワイルドカード可能。「*.jpg;*.png」など複数の拡張子を指定可能。 | ふぁいるれっきょ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L249
|
|
689
|
+
| 関数 | 全ファイル列挙 | Sの/Sを/Sで | パスS以下の全ファイル名を取得する。ワイルドカード可能。「*.jpg;*.png」のように複数の拡張子を指定可能。 | ぜんふぁいるれっきょ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L268
|
|
690
|
+
| 関数 | 存在 | PATHが/PATHの | ファイルPATHが存在するか確認して返す | そんざい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L314
|
|
691
|
+
| 関数 | フォルダ存在 | PATHが/PATHの | ディレクトリPATHが存在するか確認して返す | ふぉるだそんざい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L322
|
|
692
|
+
| 関数 | フォルダ作成 | PATHの/PATHを/PATHに/PATHへ | ディレクトリPATHを作成して返す(再帰的に作成) | ふぉるださくせい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L330
|
|
693
|
+
| 関数 | ファイルコピー | AからBに/AをBへ | パスAをパスBへファイルコピーする | ふぁいるこぴー | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L338
|
|
694
|
+
| 関数 | ファイルコピー時 | CALLBACKでAからBに/AをBへ | パスAをパスBへファイルコピーしてcallbackを実行 | ふぁいるこぴーしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L346
|
|
695
|
+
| 関数 | ファイル移動 | AからBに/AをBへ | パスAをパスBへ移動する | ふぁいるいどう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L358
|
|
696
|
+
| 関数 | ファイル移動時 | CALLBACKでAからBに/AをBへ | パスAをパスBへ移動してcallbackを実行 | ふぁいるいどうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L366
|
|
697
|
+
| 関数 | ファイル削除 | PATHの/PATHを | パスPATHを削除する | ふぁいるさくじょ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L378
|
|
698
|
+
| 関数 | ファイル削除時 | CALLBACKでPATHの/PATHを | パスPATHを削除してcallbackを実行 | ふぁいるさくじょしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L386
|
|
699
|
+
| 関数 | ファイル情報取得 | PATHの/PATHから | パスPATHの情報を調べてオブジェクトで返す | ふぁいるじょうほうしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L398
|
|
700
|
+
| 関数 | ファイルサイズ取得 | PATHの/PATHから | パスPATHのファイルサイズを調べて返す | ふぁいるさいずしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L406
|
|
701
701
|
●パス操作
|
|
702
|
-
| 関数 | ファイル名抽出 | Sから/Sの | フルパスのファイル名Sからファイル名部分を抽出して返す | ふぁいるめいちゅうしゅつ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
703
|
-
| 関数 | パス抽出 | Sから/Sの | ファイル名Sからパス部分を抽出して返す | ぱすちゅうしゅつ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
704
|
-
| 関数 | 絶対パス変換 | Aを/Aの | 相対パスから絶対パスに変換して返す | ぜったいぱすへんかん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
705
|
-
| 関数 | 相対パス展開 | AをBで | ファイル名AからパスBを展開して返す | そうたいぱすてんかい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
702
|
+
| 関数 | ファイル名抽出 | Sから/Sの | フルパスのファイル名Sからファイル名部分を抽出して返す | ふぁいるめいちゅうしゅつ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L417
|
|
703
|
+
| 関数 | パス抽出 | Sから/Sの | ファイル名Sからパス部分を抽出して返す | ぱすちゅうしゅつ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L425
|
|
704
|
+
| 関数 | 絶対パス変換 | Aを/Aの | 相対パスから絶対パスに変換して返す | ぜったいぱすへんかん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L433
|
|
705
|
+
| 関数 | 相対パス展開 | AをBで | ファイル名AからパスBを展開して返す | そうたいぱすてんかい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L441
|
|
706
706
|
●フォルダ取得
|
|
707
|
-
| 関数 | カレントディレクトリ取得 | | カレントディレクトリを返す | かれんとでぃれくとりしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
708
|
-
| 関数 | カレントディレクトリ変更 | DIRに/DIRへ | カレントディレクトリをDIRに変更する | かれんとでぃれくとりへんこう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
709
|
-
| 関数 | 作業フォルダ取得 | | カレントディレクトリを返す | さぎょうふぉるだしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
710
|
-
| 関数 | 作業フォルダ変更 | DIRに/DIRへ | カレントディレクトリをDIRに変更する | さぎょうふぉるだへんこう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
711
|
-
| 関数 | ホームディレクトリ取得 | | ホームディレクトリを取得して返す | ほーむでぃれくとりしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
712
|
-
| 関数 | デスクトップ | | デスクトップパスを取得して返す | ですくとっぷ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
713
|
-
| 関数 | マイドキュメント | | マイドキュメントのパスを取得して返す | まいどきゅめんと | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
714
|
-
| 定数 | 母艦パス | | '' | ぼかんぱす | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
715
|
-
| 関数 | 母艦パス取得 | | スクリプトのあるディレクトリを返す | ぼかんぱすしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
716
|
-
| 関数 | テンポラリフォルダ | | テンポラリフォルダのパスを取得して返す | てんぽらりふぉるだ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
717
|
-
| 関数 | 一時フォルダ作成 | DIRに/DIRへ | 指定のフォルダに作業用の一時フォルダを作成して取得して返す | いちじふぉるださくせい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
707
|
+
| 関数 | カレントディレクトリ取得 | | カレントディレクトリを返す | かれんとでぃれくとりしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L450
|
|
708
|
+
| 関数 | カレントディレクトリ変更 | DIRに/DIRへ | カレントディレクトリをDIRに変更する | かれんとでぃれくとりへんこう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L459
|
|
709
|
+
| 関数 | 作業フォルダ取得 | | カレントディレクトリを返す | さぎょうふぉるだしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L468
|
|
710
|
+
| 関数 | 作業フォルダ変更 | DIRに/DIRへ | カレントディレクトリをDIRに変更する | さぎょうふぉるだへんこう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L477
|
|
711
|
+
| 関数 | ホームディレクトリ取得 | | ホームディレクトリを取得して返す | ほーむでぃれくとりしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L486
|
|
712
|
+
| 関数 | デスクトップ | | デスクトップパスを取得して返す | ですくとっぷ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L494
|
|
713
|
+
| 関数 | マイドキュメント | | マイドキュメントのパスを取得して返す | まいどきゅめんと | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L503
|
|
714
|
+
| 定数 | 母艦パス | | '' | ぼかんぱす | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L508
|
|
715
|
+
| 関数 | 母艦パス取得 | | スクリプトのあるディレクトリを返す | ぼかんぱすしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L513
|
|
716
|
+
| 関数 | テンポラリフォルダ | | テンポラリフォルダのパスを取得して返す | てんぽらりふぉるだ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L521
|
|
717
|
+
| 関数 | 一時フォルダ作成 | DIRに/DIRへ | 指定のフォルダに作業用の一時フォルダを作成して取得して返す | いちじふぉるださくせい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L530
|
|
718
718
|
●環境変数
|
|
719
|
-
| 関数 | 環境変数取得 | Sの | 環境変数Sを返す | かんきょうへんすうしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
720
|
-
| 関数 | 環境変数一覧取得 | | 環境変数の一覧を返す | かんきょうへんすういちらんしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
719
|
+
| 関数 | 環境変数取得 | Sの | 環境変数Sを返す | かんきょうへんすうしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L543
|
|
720
|
+
| 関数 | 環境変数一覧取得 | | 環境変数の一覧を返す | かんきょうへんすういちらんしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L551
|
|
721
721
|
●圧縮・解凍
|
|
722
|
-
| 定数 | 圧縮解凍ツールパス | | '7z' | あっしゅくかいとうつーるぱす | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
723
|
-
| 関数 | 圧縮解凍ツールパス変更 | Vに/Vへ | 圧縮解凍に使うツールを取得変更する | あっしゅくかいとうつーるぱすへんこう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
724
|
-
| 関数 | 解凍 | AをBに/AからBへ | (v1非互換)ZIPファイルAをBに解凍(実行には7-zipが必要-https://goo.gl/LmKswH) | かいとう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
725
|
-
| 関数 | 解凍時 | CALLBACKでAをBに/AからBへ | 解凍処理を行い、処理が完了したときにcallback処理を実行 | かいとうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
726
|
-
| 関数 | 圧縮 | AをBに/AからBへ | (v1非互換)ファイルAをBにZIP圧縮(実行には7-zipが必要-https://goo.gl/LmKswH) | あっしゅく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
727
|
-
| 関数 | 圧縮時 | CALLBACKでAをBに/AからBへ | 圧縮処理を行い完了したときにcallback処理を指定 | あっしゅくしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
722
|
+
| 定数 | 圧縮解凍ツールパス | | '7z' | あっしゅくかいとうつーるぱす | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L556
|
|
723
|
+
| 関数 | 圧縮解凍ツールパス変更 | Vに/Vへ | 圧縮解凍に使うツールを取得変更する | あっしゅくかいとうつーるぱすへんこう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L561
|
|
724
|
+
| 関数 | 解凍 | AをBに/AからBへ | (v1非互換)ZIPファイルAをBに解凍(実行には7-zipが必要-https://goo.gl/LmKswH) | かいとう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L570
|
|
725
|
+
| 関数 | 解凍時 | CALLBACKでAをBに/AからBへ | 解凍処理を行い、処理が完了したときにcallback処理を実行 | かいとうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L583
|
|
726
|
+
| 関数 | 圧縮 | AをBに/AからBへ | (v1非互換)ファイルAをBにZIP圧縮(実行には7-zipが必要-https://goo.gl/LmKswH) | あっしゅく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L599
|
|
727
|
+
| 関数 | 圧縮時 | CALLBACKでAをBに/AからBへ | 圧縮処理を行い完了したときにcallback処理を指定 | あっしゅくしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L612
|
|
728
728
|
●Nodeプロセス
|
|
729
|
-
| 関数 | 終 | | Nodeでプログラム実行を強制終了する | おわる | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
730
|
-
| 関数 | 強制終了時 | FUNCを | Nodeでctrl+cでプログラムの実行が終了した時FUNCを実行する。もしFUNCが偽を返すと終了しない。非同期処理のとき動作する(#1010) | きょうせいしゅうりょうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
731
|
-
| 関数 | 終了 | | Nodeでプログラム実行を強制終了する | しゅうりょう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
732
|
-
| 関数 | OS取得 | | OSプラットフォームを返す(darwin/win32/linux) | OSしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
733
|
-
| 関数 | OSアーキテクチャ取得 | | OSアーキテクチャを返す | OSあーきてくちゃしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
729
|
+
| 関数 | 終 | | Nodeでプログラム実行を強制終了する | おわる | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L629
|
|
730
|
+
| 関数 | 強制終了時 | FUNCを | Nodeでctrl+cでプログラムの実行が終了した時FUNCを実行する。もしFUNCが偽を返すと終了しない。非同期処理のとき動作する(#1010) | きょうせいしゅうりょうしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L638
|
|
731
|
+
| 関数 | 終了 | | Nodeでプログラム実行を強制終了する | しゅうりょう | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L653
|
|
732
|
+
| 関数 | OS取得 | | OSプラットフォームを返す(darwin/win32/linux) | OSしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L662
|
|
733
|
+
| 関数 | OSアーキテクチャ取得 | | OSアーキテクチャを返す | OSあーきてくちゃしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L670
|
|
734
734
|
●コマンドラインと標準入出力
|
|
735
|
-
| 定数 | コマンドライン | | '' | こまんどらいん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
736
|
-
| 定数 | ナデシコランタイム | | '' | なでしこらんたいむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
737
|
-
| 定数 | ナデシコランタイムパス | | '' | なでしこらんたいむぱす | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
738
|
-
| 関数 | 標準入力取得時 | CALLBACKを | 標準入力を一行取得した時に、無名関数(あるいは、文字列で関数名を指定)F(s: string)を実行する | ひょうじゅんにゅうりょくしゅとくしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
739
|
-
| 関数 | 尋 | MSGと/MSGを | 標準入力を一行取得する | たずねる | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
740
|
-
| 関数 | 文字尋 | MSGと/MSGを | 標準入力を一行取得する。ただし自動で数値に変換しない | もじたずねる | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
741
|
-
| 関数 | 標準入力全取得 | | 標準入力を全部取得して返す | ひょうじゅんにゅうりょくぜんしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
735
|
+
| 定数 | コマンドライン | | '' | こまんどらいん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L675
|
|
736
|
+
| 定数 | ナデシコランタイム | | '' | なでしこらんたいむ | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L676
|
|
737
|
+
| 定数 | ナデシコランタイムパス | | '' | なでしこらんたいむぱす | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L677
|
|
738
|
+
| 関数 | 標準入力取得時 | CALLBACKを | 標準入力を一行取得した時に、無名関数(あるいは、文字列で関数名を指定)F(s: string)を実行する | ひょうじゅんにゅうりょくしゅとくしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L682
|
|
739
|
+
| 関数 | 尋 | MSGと/MSGを | 標準入力を一行取得する | たずねる | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L697
|
|
740
|
+
| 関数 | 文字尋 | MSGと/MSGを | 標準入力を一行取得する。ただし自動で数値に変換しない | もじたずねる | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L721
|
|
741
|
+
| 関数 | 標準入力全取得 | | 標準入力を全部取得して返す | ひょうじゅんにゅうりょくぜんしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L740
|
|
742
742
|
●テスト
|
|
743
|
-
| 関数 | ASSERT等 | AとBが | mochaによるテストで、ASSERTでAとBが正しいことを報告する | ASSERTひとしい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
743
|
+
| 関数 | ASSERT等 | AとBが | mochaによるテストで、ASSERTでAとBが正しいことを報告する | ASSERTひとしい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L762
|
|
744
744
|
●ネットワーク
|
|
745
|
-
| 関数 | 自分IPアドレス取得 | | ネットワークアダプターからIPアドレス(IPv4)を取得して配列で返す | じぶんIPあどれすしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
746
|
-
| 関数 | 自分IPV6アドレス取得 | | ネットワークアダプターからIPアドレス(IPv6)を取得して配列で返す | じぶんIPV6あどれすしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
745
|
+
| 関数 | 自分IPアドレス取得 | | ネットワークアダプターからIPアドレス(IPv4)を取得して配列で返す | じぶんIPあどれすしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L771
|
|
746
|
+
| 関数 | 自分IPV6アドレス取得 | | ネットワークアダプターからIPアドレス(IPv6)を取得して配列で返す | じぶんIPV6あどれすしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L793
|
|
747
747
|
●Ajax
|
|
748
|
-
| 関数 | AJAX送信時 | CALLBACKのURLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータを送信し、成功するとcallbackが実行される。その際『対象』にデータが代入される。 | AJAXそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
749
|
-
| 関数 | AJAX受信時 | CALLBACKでURLから/URLを | 非同期通信(Ajax)でURLにデータを送信し、成功するとcallbackが実行される。その際『対象』にデータが代入される。 | AJAXそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
750
|
-
| 関数 | GET送信時 | CALLBACKのURLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータを送信し、成功するとcallbackが実行される。その際『対象』にデータが代入される。 | GETそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
751
|
-
| 関数 | POST送信時 | CALLBACKのURLまでPARAMSを/URLへ/URLに | AjaxでURLにPARAMSをPOST送信し『対象』にデータを設定 | POSTそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
752
|
-
| 関数 | POSTフォーム送信時 | CALLBACKのURLまでPARAMSを/URLへ/URLに | AjaxでURLにPARAMSをフォームとしてPOST送信し『対象』にデータを設定 | POSTふぉーむそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
753
|
-
| 関数 | AJAX失敗時 | CALLBACKの | Ajax命令でエラーが起きたとき | AJAXえらーしっぱいしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
754
|
-
| 定数 | AJAXオプション | | '' | Ajax関連のオプションを指定 | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
755
|
-
| 関数 | AJAXオプション設定 | OPTIONに/OPTIONへ/OPTIONと | Ajax命令でオプションを設定 | AJAXおぷしょんせってい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
756
|
-
| 関数 | AJAX保障送信 | URLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータの送信を開始する非同期処理オブジェクト(Promise)を作成する。 | AJAXほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
757
|
-
| 関数 | HTTP保障取得 | URLの/URLから/URLを | 非同期通信(Ajax)でURLにデータの送信を開始する非同期処理オブジェクト(Promise)を作成する。 | HTTPほしょうしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
758
|
-
| 関数 | GET保障送信 | URLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータの送信を開始する非同期処理オブジェクト(Promise)を作成する。 | GETほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
759
|
-
| 関数 | POST保障送信 | URLまでPARAMSを/URLへ/URLに | 非同期通信(Ajax)でURLにPARAMSをPOST送信を開始する非同期処理オブジェクト(Promise)を作成する。 | POSTほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
760
|
-
| 関数 | POSTフォーム保障送信 | URLまでPARAMSを/URLへ/URLに | 非同期通信(Ajax)でURLにPARAMSをフォームとしてPOST送信を開始する非同期処理オブジェクト(Promise)を作成する。 | POSTふぉーむほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
761
|
-
| 関数 | AJAX内容取得 | RESからTYPEで | 非同期通信(Ajax)の応答から内容を指定した形式で取り出すための非同期処理オブジェクト(Promise)を返す。 | AJAXないようしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
762
|
-
| 関数 | AJAX受信 | URLから/URLを | 「!非同期モード」で非同期通信(Ajax)でURLからデータを受信する。『AJAXオプション』を指定できる。結果は変数『対象』に入る | AJAXじゅしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
763
|
-
| 関数 | POSTデータ生成 | PARAMSの/PARAMSを | 辞書形式のデータPARAMSをkey=value&key=value...の形式に変換する | POSTでーたせいせい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
748
|
+
| 関数 | AJAX送信時 | CALLBACKのURLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータを送信し、成功するとcallbackが実行される。その際『対象』にデータが代入される。 | AJAXそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L813
|
|
749
|
+
| 関数 | AJAX受信時 | CALLBACKでURLから/URLを | 非同期通信(Ajax)でURLにデータを送信し、成功するとcallbackが実行される。その際『対象』にデータが代入される。 | AJAXそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L832
|
|
750
|
+
| 関数 | GET送信時 | CALLBACKのURLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータを送信し、成功するとcallbackが実行される。その際『対象』にデータが代入される。 | GETそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L841
|
|
751
|
+
| 関数 | POST送信時 | CALLBACKのURLまでPARAMSを/URLへ/URLに | AjaxでURLにPARAMSをPOST送信し『対象』にデータを設定 | POSTそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L850
|
|
752
|
+
| 関数 | POSTフォーム送信時 | CALLBACKのURLまでPARAMSを/URLへ/URLに | AjaxでURLにPARAMSをフォームとしてPOST送信し『対象』にデータを設定 | POSTふぉーむそうしんしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L879
|
|
753
|
+
| 関数 | AJAX失敗時 | CALLBACKの | Ajax命令でエラーが起きたとき | AJAXえらーしっぱいしたとき | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L904
|
|
754
|
+
| 定数 | AJAXオプション | | '' | Ajax関連のオプションを指定 | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L908
|
|
755
|
+
| 関数 | AJAXオプション設定 | OPTIONに/OPTIONへ/OPTIONと | Ajax命令でオプションを設定 | AJAXおぷしょんせってい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L913
|
|
756
|
+
| 関数 | AJAX保障送信 | URLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータの送信を開始する非同期処理オブジェクト(Promise)を作成する。 | AJAXほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L922
|
|
757
|
+
| 関数 | HTTP保障取得 | URLの/URLから/URLを | 非同期通信(Ajax)でURLにデータの送信を開始する非同期処理オブジェクト(Promise)を作成する。 | HTTPほしょうしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L933
|
|
758
|
+
| 関数 | GET保障送信 | URLまで/URLへ/URLに | 非同期通信(Ajax)でURLにデータの送信を開始する非同期処理オブジェクト(Promise)を作成する。 | GETほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L942
|
|
759
|
+
| 関数 | POST保障送信 | URLまでPARAMSを/URLへ/URLに | 非同期通信(Ajax)でURLにPARAMSをPOST送信を開始する非同期処理オブジェクト(Promise)を作成する。 | POSTほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L951
|
|
760
|
+
| 関数 | POSTフォーム保障送信 | URLまでPARAMSを/URLへ/URLに | 非同期通信(Ajax)でURLにPARAMSをフォームとしてPOST送信を開始する非同期処理オブジェクト(Promise)を作成する。 | POSTふぉーむほしょうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L974
|
|
761
|
+
| 関数 | AJAX内容取得 | RESからTYPEで | 非同期通信(Ajax)の応答から内容を指定した形式で取り出すための非同期処理オブジェクト(Promise)を返す。 | AJAXないようしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L990
|
|
762
|
+
| 関数 | AJAX受信 | URLから/URLを | 「!非同期モード」で非同期通信(Ajax)でURLからデータを受信する。『AJAXオプション』を指定できる。結果は変数『対象』に入る | AJAXじゅしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1015
|
|
763
|
+
| 関数 | POSTデータ生成 | PARAMSの/PARAMSを | 辞書形式のデータPARAMSをkey=value&key=value...の形式に変換する | POSTでーたせいせい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1043
|
|
764
764
|
●新AJAX
|
|
765
|
-
| 関数 | AJAXテキスト取得 | URLから | AJAXでURLにアクセスしテキスト形式で結果を得る。送信時AJAXオプションの値を参照。 | AJAXてきすとしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
766
|
-
| 関数 | AJAX_JSON取得 | URLから | AJAXでURLにアクセスしJSONの結果を得て、送信時AJAXオプションの値を参照。 | AJAX_JSONしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
767
|
-
| 関数 | AJAXバイナリ取得 | URLから | AJAXでURLにアクセスしバイナリ(arrayBuffer)形式で結果を得る。送信時AJAXオプションの値を参照。 | AJAXばいなりしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
765
|
+
| 関数 | AJAXテキスト取得 | URLから | AJAXでURLにアクセスしテキスト形式で結果を得る。送信時AJAXオプションの値を参照。 | AJAXてきすとしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1059
|
|
766
|
+
| 関数 | AJAX_JSON取得 | URLから | AJAXでURLにアクセスしJSONの結果を得て、送信時AJAXオプションの値を参照。 | AJAX_JSONしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1074
|
|
767
|
+
| 関数 | AJAXバイナリ取得 | URLから | AJAXでURLにアクセスしバイナリ(arrayBuffer)形式で結果を得る。送信時AJAXオプションの値を参照。 | AJAXばいなりしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1088
|
|
768
768
|
●LINE
|
|
769
|
-
| 関数 | LINE送信 | TOKENへMESSAGEを/TOKENに | LINEにメッセージを送信する。先にLINE Notifyのページで宛先のトークンを取得する。TOKENへMESSAGEをLINE送信する。 | LINEそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
770
|
-
| 関数 | LINE画像送信 | TOKENへIMAGEFILEとMESSAGEを/TOKENに | LINEにメッセージを送信する。先にLINE Notifyのページで宛先のトークンを取得する。TOKENへIMAGE_FILEとMESSAGEをLINE画像送信する。 | LINEがぞうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
769
|
+
| 関数 | LINE送信 | TOKENへMESSAGEを/TOKENに | LINEにメッセージを送信する。先にLINE Notifyのページで宛先のトークンを取得する。TOKENへMESSAGEをLINE送信する。 | LINEそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1103
|
|
770
|
+
| 関数 | LINE画像送信 | TOKENへIMAGEFILEとMESSAGEを/TOKENに | LINEにメッセージを送信する。先にLINE Notifyのページで宛先のトークンを取得する。TOKENへIMAGE_FILEとMESSAGEをLINE画像送信する。 | LINEがぞうそうしん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1125
|
|
771
771
|
●文字コード
|
|
772
|
-
| 関数 | 文字コード変換サポート判定 | CODEの/CODEを | 文字コードCODEをサポートしているか確認 | もじこーどさぽーとはんてい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
773
|
-
| 関数 | SJIS変換 | STRに/STRへ/STRを | (v1非互換)文字列をShift_JISのバイナリバッファに変換 | SJISへんかん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
774
|
-
| 関数 | SJIS取得 | BUFから/BUFを/BUFで | Shift_JISのバイナリバッファを文字列に変換 | SJISしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
775
|
-
| 関数 | エンコーディング変換 | SをCODEへ/CODEで | 文字列SをCODEへ変換してバイナリバッファを返す | えんこーでぃんぐへんかん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
776
|
-
| 関数 | エンコーディング取得 | BUFをCODEから/CODEで | バイナリバッファBUFをCODEから変換して返す | えんこーでぃんぐしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
772
|
+
| 関数 | 文字コード変換サポート判定 | CODEの/CODEを | 文字コードCODEをサポートしているか確認 | もじこーどさぽーとはんてい | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1149
|
|
773
|
+
| 関数 | SJIS変換 | STRに/STRへ/STRを | (v1非互換)文字列をShift_JISのバイナリバッファに変換 | SJISへんかん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1157
|
|
774
|
+
| 関数 | SJIS取得 | BUFから/BUFを/BUFで | Shift_JISのバイナリバッファを文字列に変換 | SJISしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1166
|
|
775
|
+
| 関数 | エンコーディング変換 | SをCODEへ/CODEで | 文字列SをCODEへ変換してバイナリバッファを返す | えんこーでぃんぐへんかん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1175
|
|
776
|
+
| 関数 | エンコーディング取得 | BUFをCODEから/CODEで | バイナリバッファBUFをCODEから変換して返す | えんこーでぃんぐしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1184
|
|
777
777
|
●ハッシュ関数
|
|
778
|
-
| 関数 | ハッシュ関数一覧取得 | | 利用可能なハッシュ関数の一覧を返す | はっしゅかんすういちらんしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
779
|
-
| 関数 | ハッシュ値計算 | SをALGのENCで | データSをアルゴリズムALG(sha256/sha512/md5)のエンコーディングENC(hex/base64)でハッシュ値を計算して返す | はっしゅちけいさん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#
|
|
778
|
+
| 関数 | ハッシュ関数一覧取得 | | 利用可能なハッシュ関数の一覧を返す | はっしゅかんすういちらんしゅとく | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1194
|
|
779
|
+
| 関数 | ハッシュ値計算 | SをALGのENCで | データSをアルゴリズムALG(sha256/sha512/md5)のエンコーディングENC(hex/base64)でハッシュ値を計算して返す | はっしゅちけいさん | https://github.com/kujirahand/nadesiko3/tree/master/src/plugin_node.mts#L1202
|
|
780
780
|
|
|
781
781
|
|
|
782
782
|
■plugin_httpserver(基本プラグイン,cnako)
|
package/core/package.json
CHANGED
package/core/src/nako3.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { NakoParser } from './nako_parser3.mjs';
|
|
|
3
3
|
import { NakoLexer } from './nako_lexer.mjs';
|
|
4
4
|
import { NakoPrepare } from './nako_prepare.mjs';
|
|
5
5
|
import { generateJS, NakoGenOptions } from './nako_gen.mjs';
|
|
6
|
-
import { NakoGenASync } from './nako_gen_async.mjs';
|
|
7
6
|
import { convertInlineIndent, convertIndentSyntax } from './nako_indent_inline.mjs';
|
|
8
7
|
import { convertDNCL } from './nako_from_dncl.mjs';
|
|
9
8
|
import { convertDNCL2 } from './nako_from_dncl2.mjs';
|
|
@@ -646,10 +645,9 @@ export class NakoCompiler {
|
|
|
646
645
|
if (mode === 'sync') {
|
|
647
646
|
return generateJS(this, ast, opt);
|
|
648
647
|
}
|
|
649
|
-
//
|
|
648
|
+
// 廃止の非同期モード #1164
|
|
650
649
|
if (mode === '非同期モード') {
|
|
651
|
-
this.logger.
|
|
652
|
-
return NakoGenASync.generate(this, ast, opt.isTest);
|
|
650
|
+
this.logger.error('『!非同期モード』は廃止されました。[詳細](https://github.com/kujirahand/nadesiko3/issues/1164)');
|
|
653
651
|
}
|
|
654
652
|
// その他のコードジェネレータ(PHPなど)
|
|
655
653
|
const genObj = this.codeGenerateor[mode];
|
package/core/src/nako3.mts
CHANGED
|
@@ -8,7 +8,6 @@ import { NakoParser } from './nako_parser3.mjs'
|
|
|
8
8
|
import { NakoLexer } from './nako_lexer.mjs'
|
|
9
9
|
import { NakoPrepare } from './nako_prepare.mjs'
|
|
10
10
|
import { NakoGen, generateJS, NakoGenOptions, NakoGenResult } from './nako_gen.mjs'
|
|
11
|
-
import { NakoGenASync } from './nako_gen_async.mjs'
|
|
12
11
|
import { convertInlineIndent, convertIndentSyntax } from './nako_indent_inline.mjs'
|
|
13
12
|
import { convertDNCL } from './nako_from_dncl.mjs'
|
|
14
13
|
import { convertDNCL2 } from './nako_from_dncl2.mjs'
|
|
@@ -753,10 +752,9 @@ export class NakoCompiler {
|
|
|
753
752
|
if (mode === 'sync') {
|
|
754
753
|
return generateJS(this, ast, opt)
|
|
755
754
|
}
|
|
756
|
-
//
|
|
755
|
+
// 廃止の非同期モード #1164
|
|
757
756
|
if (mode === '非同期モード') {
|
|
758
|
-
this.logger.
|
|
759
|
-
return NakoGenASync.generate(this, ast, opt.isTest)
|
|
757
|
+
this.logger.error('『!非同期モード』は廃止されました。[詳細](https://github.com/kujirahand/nadesiko3/issues/1164)')
|
|
760
758
|
}
|
|
761
759
|
// その他のコードジェネレータ(PHPなど)
|
|
762
760
|
const genObj: any|undefined = this.codeGenerateor[mode]
|
|
@@ -11,9 +11,9 @@ export interface NakoCoreVersion {
|
|
|
11
11
|
}
|
|
12
12
|
// 実際のバージョン定義 (自動生成されるので以下を編集しない)
|
|
13
13
|
const coreVersion: NakoCoreVersion = {
|
|
14
|
-
version: '3.
|
|
14
|
+
version: '3.5.0',
|
|
15
15
|
major: 3,
|
|
16
|
-
minor:
|
|
17
|
-
patch:
|
|
16
|
+
minor: 5,
|
|
17
|
+
patch: 0
|
|
18
18
|
}
|
|
19
19
|
export default coreVersion
|
package/core/src/nako_gen.mjs
CHANGED
|
@@ -473,9 +473,6 @@ export class NakoGen {
|
|
|
473
473
|
case 'if':
|
|
474
474
|
code += this.convIf(node);
|
|
475
475
|
break;
|
|
476
|
-
case 'tikuji':
|
|
477
|
-
code += this.convTikuji(node);
|
|
478
|
-
break;
|
|
479
476
|
case 'for':
|
|
480
477
|
code += this.convFor(node);
|
|
481
478
|
break;
|
|
@@ -1120,48 +1117,6 @@ export class NakoGen {
|
|
|
1120
1117
|
return this.convLineno(node, false) +
|
|
1121
1118
|
`if (${expr}) {\n ${block}\n}` + falseBlock + ';\n';
|
|
1122
1119
|
}
|
|
1123
|
-
convTikuji(node) {
|
|
1124
|
-
// #1164 により「逐次実行」構文は近いうちに廃止する
|
|
1125
|
-
const pid = this.loopId++;
|
|
1126
|
-
// gen tikuji blocks
|
|
1127
|
-
const curName = `__tikuji${pid}`;
|
|
1128
|
-
let code = `const ${curName} = []\n`;
|
|
1129
|
-
const blocks = (node.blocks) ? node.blocks : [];
|
|
1130
|
-
for (let i = 0; i < blocks.length; i++) {
|
|
1131
|
-
const block = this._convGen(blocks[i], false).replace(/\s+$/, '') + '\n';
|
|
1132
|
-
const blockLineNo = this.convLineno(blocks[i], true);
|
|
1133
|
-
const blockCode = `${curName}.push(async function(resolve, reject) {\n` +
|
|
1134
|
-
' __self.resolve = resolve;\n' +
|
|
1135
|
-
' __self.reject = reject;\n' +
|
|
1136
|
-
' __self.resolveCount = 0;\n' +
|
|
1137
|
-
` ${blockLineNo}\n` +
|
|
1138
|
-
` ${block}` +
|
|
1139
|
-
' if (__self.resolveCount === 0) resolve();\n' +
|
|
1140
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
1141
|
-
'}); // end of tikuji__${pid}[{$i}]\n';
|
|
1142
|
-
code += blockCode;
|
|
1143
|
-
}
|
|
1144
|
-
code += `// end of ${curName} \n`;
|
|
1145
|
-
// gen error block
|
|
1146
|
-
let errorCode = ` ${curName}.splice(0);\n` + // clear
|
|
1147
|
-
' __v0["エラーメッセージ"]=errMsg;\n';
|
|
1148
|
-
if (node.errorBlock != null) {
|
|
1149
|
-
const errBlock = this._convGen(node.errorBlock, false).replace(/\s+$/, '') + '\n';
|
|
1150
|
-
errorCode += errBlock;
|
|
1151
|
-
}
|
|
1152
|
-
code += `const ${curName}__reject = function(errMsg){\n${errorCode}};\n`;
|
|
1153
|
-
// gen run block
|
|
1154
|
-
code += '__self.resolve = undefined;\n';
|
|
1155
|
-
code += `const ${curName}__resolve = function(){\n`;
|
|
1156
|
-
code += ' setTimeout(async function(){\n';
|
|
1157
|
-
code += ` if (${curName}.length == 0) {return}\n`;
|
|
1158
|
-
code += ` const f = ${curName}.shift()\n`;
|
|
1159
|
-
code += ` await f(${curName}__resolve, ${curName}__reject);\n`;
|
|
1160
|
-
code += ' }, 0);\n';
|
|
1161
|
-
code += '};\n';
|
|
1162
|
-
code += `${curName}__resolve()\n`;
|
|
1163
|
-
return this.convLineno(node, false) + code;
|
|
1164
|
-
}
|
|
1165
1120
|
convFuncGetArgsCalcType(_funcName, _func, node) {
|
|
1166
1121
|
const args = [];
|
|
1167
1122
|
const opts = {};
|
package/core/src/nako_gen.mts
CHANGED
|
@@ -535,9 +535,6 @@ export class NakoGen {
|
|
|
535
535
|
case 'if':
|
|
536
536
|
code += this.convIf(node)
|
|
537
537
|
break
|
|
538
|
-
case 'tikuji':
|
|
539
|
-
code += this.convTikuji(node)
|
|
540
|
-
break
|
|
541
538
|
case 'for':
|
|
542
539
|
code += this.convFor(node)
|
|
543
540
|
break
|
|
@@ -1190,51 +1187,6 @@ export class NakoGen {
|
|
|
1190
1187
|
`if (${expr}) {\n ${block}\n}` + falseBlock + ';\n'
|
|
1191
1188
|
}
|
|
1192
1189
|
|
|
1193
|
-
convTikuji (node: Ast): string {
|
|
1194
|
-
// #1164 により「逐次実行」構文は近いうちに廃止する
|
|
1195
|
-
const pid = this.loopId++
|
|
1196
|
-
// gen tikuji blocks
|
|
1197
|
-
const curName = `__tikuji${pid}`
|
|
1198
|
-
let code = `const ${curName} = []\n`
|
|
1199
|
-
const blocks: Ast[] = (node.blocks) ? node.blocks : []
|
|
1200
|
-
for (let i = 0; i < blocks.length; i++) {
|
|
1201
|
-
const block = this._convGen(blocks[i], false).replace(/\s+$/, '') + '\n'
|
|
1202
|
-
const blockLineNo = this.convLineno(blocks[i], true)
|
|
1203
|
-
const blockCode =
|
|
1204
|
-
`${curName}.push(async function(resolve, reject) {\n` +
|
|
1205
|
-
' __self.resolve = resolve;\n' +
|
|
1206
|
-
' __self.reject = reject;\n' +
|
|
1207
|
-
' __self.resolveCount = 0;\n' +
|
|
1208
|
-
` ${blockLineNo}\n` +
|
|
1209
|
-
` ${block}` +
|
|
1210
|
-
' if (__self.resolveCount === 0) resolve();\n' +
|
|
1211
|
-
// eslint-disable-next-line no-template-curly-in-string
|
|
1212
|
-
'}); // end of tikuji__${pid}[{$i}]\n'
|
|
1213
|
-
code += blockCode
|
|
1214
|
-
}
|
|
1215
|
-
code += `// end of ${curName} \n`
|
|
1216
|
-
// gen error block
|
|
1217
|
-
let errorCode =
|
|
1218
|
-
` ${curName}.splice(0);\n` + // clear
|
|
1219
|
-
' __v0["エラーメッセージ"]=errMsg;\n'
|
|
1220
|
-
if (node.errorBlock != null) {
|
|
1221
|
-
const errBlock = this._convGen(node.errorBlock as Ast, false).replace(/\s+$/, '') + '\n'
|
|
1222
|
-
errorCode += errBlock
|
|
1223
|
-
}
|
|
1224
|
-
code += `const ${curName}__reject = function(errMsg){\n${errorCode}};\n`
|
|
1225
|
-
// gen run block
|
|
1226
|
-
code += '__self.resolve = undefined;\n'
|
|
1227
|
-
code += `const ${curName}__resolve = function(){\n`
|
|
1228
|
-
code += ' setTimeout(async function(){\n'
|
|
1229
|
-
code += ` if (${curName}.length == 0) {return}\n`
|
|
1230
|
-
code += ` const f = ${curName}.shift()\n`
|
|
1231
|
-
code += ` await f(${curName}__resolve, ${curName}__reject);\n`
|
|
1232
|
-
code += ' }, 0);\n'
|
|
1233
|
-
code += '};\n'
|
|
1234
|
-
code += `${curName}__resolve()\n`
|
|
1235
|
-
return this.convLineno(node, false) + code
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
1190
|
convFuncGetArgsCalcType (_funcName: string, _func: any, node: Ast): [any, any] {
|
|
1239
1191
|
const args = []
|
|
1240
1192
|
const opts: {[key: string]: boolean} = {}
|
|
@@ -14,7 +14,7 @@ export const tararebaJosiList = [
|
|
|
14
14
|
];
|
|
15
15
|
// 意味のない助詞(削除する) #936 #939 #974
|
|
16
16
|
export const removeJosiList = [
|
|
17
|
-
'こと', 'である', 'です', 'します', 'でした'
|
|
17
|
+
'こと', 'である', 'です', 'します', 'でした',
|
|
18
18
|
];
|
|
19
19
|
/**
|
|
20
20
|
* 「もし」文で使う「たら」「れば」などの一覧をプログラムで扱いやすいようマップに変換したもの
|
|
@@ -32,7 +32,14 @@ removeJosiList.forEach(josi => {
|
|
|
32
32
|
josiList.push(josi);
|
|
33
33
|
removeJosiMap[josi] = true;
|
|
34
34
|
});
|
|
35
|
+
// 「もの」構文 (#1614)
|
|
36
|
+
const josiListMono = [];
|
|
37
|
+
for (const jo of josiList) {
|
|
38
|
+
josiListMono.push('もの' + jo);
|
|
39
|
+
josiListMono.push(jo);
|
|
40
|
+
}
|
|
35
41
|
// 文字数の長い順に並び替え
|
|
36
|
-
|
|
42
|
+
josiListMono.sort((a, b) => b.length - a.length);
|
|
37
43
|
// 正規表現で助詞をマッチできるようにする
|
|
38
|
-
|
|
44
|
+
const pat = '^[\\t ]*(' + josiListMono.join('|') + ')';
|
|
45
|
+
export const josiRE = new RegExp(pat);
|
|
@@ -17,7 +17,7 @@ export const tararebaJosiList: string[] = [
|
|
|
17
17
|
|
|
18
18
|
// 意味のない助詞(削除する) #936 #939 #974
|
|
19
19
|
export const removeJosiList: string[] = [
|
|
20
|
-
'こと', 'である', 'です', 'します', 'でした'
|
|
20
|
+
'こと', 'である', 'です', 'します', 'でした',
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -38,8 +38,16 @@ removeJosiList.forEach(josi => {
|
|
|
38
38
|
removeJosiMap[josi] = true
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
+
// 「もの」構文 (#1614)
|
|
42
|
+
const josiListMono = []
|
|
43
|
+
for (const jo of josiList) {
|
|
44
|
+
josiListMono.push('もの' + jo)
|
|
45
|
+
josiListMono.push(jo)
|
|
46
|
+
}
|
|
47
|
+
|
|
41
48
|
// 文字数の長い順に並び替え
|
|
42
|
-
|
|
49
|
+
josiListMono.sort((a, b) => b.length - a.length)
|
|
43
50
|
|
|
44
51
|
// 正規表現で助詞をマッチできるようにする
|
|
45
|
-
|
|
52
|
+
const pat = '^[\\t ]*(' + josiListMono.join('|') + ')'
|
|
53
|
+
export const josiRE = new RegExp(pat)
|
|
@@ -169,7 +169,7 @@ function cbWordParser(src, isTrimOkurigana = true) {
|
|
|
169
169
|
src = src.substring(j[0].length);
|
|
170
170
|
// 助詞の直後にある「,」を飛ばす #877
|
|
171
171
|
if (src.charAt(0) === ',') {
|
|
172
|
-
src = src.
|
|
172
|
+
src = src.substring(1);
|
|
173
173
|
}
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
@@ -204,6 +204,10 @@ function cbWordParser(src, isTrimOkurigana = true) {
|
|
|
204
204
|
josi = '';
|
|
205
205
|
res = res.substring(0, res.length - ii[1].length);
|
|
206
206
|
}
|
|
207
|
+
// 「もの」構文 #1614
|
|
208
|
+
if (josi.substring(0, 2) === 'もの') {
|
|
209
|
+
josi = josi.substring(2);
|
|
210
|
+
}
|
|
207
211
|
// 助詞「こと」「である」「です」などは「**すること」のように使うので削除 #936 #939 #974
|
|
208
212
|
if (removeJosiMap[josi]) {
|
|
209
213
|
josi = '';
|
|
@@ -224,15 +228,15 @@ function cbString(beginTag, closeTag, src) {
|
|
|
224
228
|
let res = '';
|
|
225
229
|
let josi = '';
|
|
226
230
|
let numEOL = 0;
|
|
227
|
-
src = src.
|
|
231
|
+
src = src.substring(beginTag.length); // skip beginTag
|
|
228
232
|
const i = src.indexOf(closeTag);
|
|
229
233
|
if (i < 0) { // not found
|
|
230
234
|
res = src;
|
|
231
235
|
src = '';
|
|
232
236
|
}
|
|
233
237
|
else {
|
|
234
|
-
res = src.
|
|
235
|
-
src = src.
|
|
238
|
+
res = src.substring(0, i);
|
|
239
|
+
src = src.substring(i + closeTag.length);
|
|
236
240
|
// res の中に beginTag があればエラーにする #953
|
|
237
241
|
if (res.indexOf(beginTag) >= 0) {
|
|
238
242
|
if (beginTag === '『') {
|
|
@@ -247,16 +251,20 @@ function cbString(beginTag, closeTag, src) {
|
|
|
247
251
|
const j = josiRE.exec(src);
|
|
248
252
|
if (j) {
|
|
249
253
|
josi = j[0].replace(/^\s+/, '');
|
|
250
|
-
src = src.
|
|
254
|
+
src = src.substring(j[0].length);
|
|
251
255
|
// 助詞の後のカンマ #877
|
|
252
256
|
if (src.charAt(0) === ',') {
|
|
253
|
-
src = src.
|
|
257
|
+
src = src.substring(1);
|
|
254
258
|
}
|
|
255
259
|
}
|
|
256
260
|
// 助詞「こと」「である」「です」などは「**すること」のように使うので削除 #936 #939 #974
|
|
257
261
|
if (removeJosiMap[josi]) {
|
|
258
262
|
josi = '';
|
|
259
263
|
}
|
|
264
|
+
// 「もの」構文 (#1614)
|
|
265
|
+
if (josi.substring(0, 2) === 'もの') {
|
|
266
|
+
josi = josi.substring(2);
|
|
267
|
+
}
|
|
260
268
|
// 改行を数える
|
|
261
269
|
for (let i = 0; i < res.length; i++) {
|
|
262
270
|
if (res.charAt(i) === '\n') {
|