Socket
Book a DemoInstallSign in
Socket

@another_works/nico-generator

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@another_works/nico-generator

source code generating and replacing tool.

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

NicoGenerator

指定したディレクトリ配下のソースコードを読み込み、指定した文字で置換したソースコードを新たに作成するツール。

使用方法

ドライラン

$ npx @another_works/nico-generator -b company -r employee -p ./check/modules -o ./check/modules -d

or

$ npm install -D @another_works/nico-generator
$ nico-generator -b company -r employee -p ./check/modules -o ./check/modules -d

パラメータ

引数名説明
-b置き換え元の文字列
-r置き換え後の文字列
-p置き換え対象ファイルがあるディレクトリ
-o出力先ディレクトリ
-dドライラン

ドライラン出力内容

出力名説明
optionsコマンドライン引数を構造化したもの
configこの設定に合わせて置き換えが行われる。general = 全体設定、input = 入力設定、output = 出力設定。
ruleconvertWordsの規則に沿って、フォルダ、ファイル名とファイルの中身の、文字列の置換が実行される(それぞれのkeyの文字列が、対応するvalueの文字列に置き換えられていく)
targetFileList置き換え対象のファイル一覧
output file start - create file(このファイルを元に) -> (このファイルを作成する)
output file start - create file body作成されるファイルの内容

ファイル生成

$ npx @another_works/nico-generator -b company -r employee -p ./check/modules -o ./check/modules 

for developer

preparing

$ npm install

execute

$ ts-node src/index.ts -b company -r employee -p ./check/modules -o ./check/modules

test

$ npm run test

build

$ npm run build

License

MIT

Keywords

generator

FAQs

Package last updated on 18 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.