0.3.0 • Published 2 months ago

ng-api-parser v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

NG-API-Server

Analyzes one or more typescript files and then converts them into an object. The result is written in a JSON file for easy use.

Installation

npm i ng-api-parser

Usage

ng-api-parser generate --path src/**/*

Options

Path - --path

Use --path to set a base directory from which to analyze typescript files. This option is mandatory and should only point a directory or a file. It use Glob.

ng-api-parser generate [-P | --path] <path>

Example :

ng-api-parser generate --path src/**/*

Output - --output

If specified, a folder or a file with the given name will be created and will contains results from the command. If not specified it will create a file named output.json which will contains results fromt the command.

To specify a output file, it must end by .json

ng-api-parser generate [-P | --path] <path> [-O | --output] <path>

Example :

ng-api-parser generate --path src/**/* --output ./output-folder
ng-api-parser generate --path src/**/* --output ./file-folder.json

Exclude - --exclude

If specified, --exclude allows to ignore a set of files from the files which are analyzed.

ng-api-parser generate [-p | --path] <path> [-E | --exclude] <path>

Example :

ng-api-parser generate --path src/**/* --exclude node_modules/**/*

Parent Related - --parentRelated

If specified --parentRelated output the result in a folder with the same name as the file's parent which as been analyzed.

It can't be used when the --output specify a file name

ng-api-parser generate [-p | --path] <path> [-PR | --parentRelated]

Example :

ng-api-parser generate --path src/**/* --parentRelated
0.3.0

2 months ago

0.2.0

3 months ago

0.1.0

4 months ago

1.0.1

5 months ago

1.0.0

5 months ago