2.1.0 • Published 6 years ago

totvs-platform-helper v2.1.0

Weekly downloads
24
License
MIT
Repository
github
Last release
6 years ago

totvs-platform-helper

Getting Started

Class SmartClient

Constructor(directory, executable)

  • directory (Type: String, Default: process.cwd())

  • executable (Type: String, Default: smartclient.exe (windows) or smartclient (linux))

var SmartClient = require('totvs-platform-helper/smartclient'),
    sc = new SmartClient('C:\\TOTVS\\bin\\smartclient', 'sc.exe');

Method run(options)

Returns: Promise

Execute the SmartClient with the provided options, fulfilling the promise when the program ends.

  • options (Type: Object)

    A set of key/value pairs that contains the parameters to run the smartclient

    var SmartClient = require('totvs-platform-helper/smartclient'),
        sc = new SmartClient('C:\\TOTVS\\bin\\smartclient');
    
    sc.run({
      program: 'SIGAFAT',
      connection: 'TCP',
      environment: 'ENVIRONMENT'
    })
    .then(function() {
      console.log('SmartClient Finished!');
    });
  • options.program (Type: String, Default: "SIGAFAT")

    The "Starting Program"

  • options.connection (Type: String | Object, Default: "TCP")

    The server connection info.

    Using String to read server address/port from smartclient.ini:

    connection: "TCP"

    Using Object to define server address/port:

    connection: {
      address: "localhost",
      port: 1234
    }
  • options.environment (Type: String, Default: "ENVIRONMENT")

    The Server Environment

  • options.quiet (Type: Boolean, Default: true)

    Supress the application Splash Screen

  • options.args (Type: Array)

    List of string arguments

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago