e-lang-tool

1.1.3 • Public • Published

E lang tool

This is a tool for extracting / modify project information from an E language program file.

Install and use

Install:

$ npm i e-lang-tool

use:

Usage: eTool [options] <efile>
 
Read and Write project info for e lang code file.
 
Options:
 
  -V, --version                         output the version number
  -i, --input-json [file]               json file to read
  -o, --out-json [file]                 json file to write
  -s, --save-to-file [file]             E lang file to write to
  -w, --write                           save new value to e lang file
  -f, --read-json-fields [field, ...]   read fields from input json file
  -F, --write-json-fields [field, ...]  write fields to out json file
  -n, --name <value>                    change project name
  -d, --description <value>             change project description
  -a, --author <value>                  change project author
  -M, --major <n>                       change major version number
  -m, --minor <n>                       change minor version number
  -p, --patch <n>                       change patch version number
  -d, --date <n>                        change date version number
  -v, --ver <ver>                       change project version number
  -f, --full-version <ver>              change full version number
  -h, --help                            output usage information
 
Examples:
 
> show project info:
 
  $ eTool file.e
 
> output project info to json:
 
  $ eTool -o package.json file.e
  $ eTool -o package.json -F version,name,author file.ec
 
> update project info:
 
  $ eTool -w -n "test project" -v 1.1.0 file.e
  $ eTool -w -n "test project" -v 1.1.0 -s new-file.e file.e
  $ eTool -w -i ./info.json -f version -s new-file.e file.e

Author

Binsee binsee

CHANGELOG

Changelog

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i e-lang-tool

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

20.5 kB

Total Files

8

Last publish

Collaborators

  • binsee