Skip to content

Node.js module dealing SAP Hybris Commerce Suite administration console.

License

Notifications You must be signed in to change notification settings

klaushauschild1984/hac.js

Repository files navigation

hac.js Build Status

Node.js module dealing SAP Hybris Commerce Suite administration console.

Impex

Parser

TODO

Pretty printer

format.js exports a function for pretty print an Impex file as [ORIGN].formatted.impex. format-cli.js house a command line adapter for it.

Usage

const format = require('./format');

const impex_file_name = ...

format(impex_file_name);

Turning this

    $macro     =value

# other comment
INSERT_UPDATE     Product   ;code[unique=true]     ;;; ;
#    fdfs
    ;   code

    REMOVE Product;code[unique=true]
;super very long value that is longer than its header

UPDATE Product; code [unique  =true ]  [allownull=true    ,default=code]

in that

$macro = value

# other comment
INSERT_UPDATE Product; code[unique = true]; 
# fdfs
                     ; code               ; 

REMOVE Product; code[unique = true]                                  ; 
              ; super very long value that is longer than its header ; 

UPDATE Product; code[unique = true, allownull = true, default = code]; 

Formatting rule

  • trim all lines and values
  • remove trailing empty lines
  • remove trailing ;
  • remove multiple empty lines (keeps blocks intact)

Binary packages

Build binary packages directly executable with

  • npm run package-windows
  • npm run package-linux

This will produce the respective binaries in bin folder.

Or download from release page

Requirements

About

Node.js module dealing SAP Hybris Commerce Suite administration console.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published