Skip to content

m4xk0m/fsuipc-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fsuipc

Node bindings to FSUIPC for Windows x64.

NPM Version Downloads Stats

Installation

npm install --save fsuipc

Or

yarn add fsuipc

Usage example

const fsuipc = require('fsuipc');

const obj = new fsuipc.FSUIPC();

obj.open()
    .then((obj) => {
      console.log(obj.add('clockHour', 0x238, fsuipc.Type.Byte));
      console.log(obj.add('aircraftType', 0x3D00, fsuipc.Type.String, 256));
      console.log(obj.add('lights', 0x0D0C, fsuipc.Type.BitArray, 2));

      return obj.process();
    })
    .then((result) => {
      console.log(JSON.stringify(result));

      return obj.close();
    })
    .catch((err) => {
      console.error(err);
      
      return obj.close();
    });

Release History

  • 0.1.0
    • Initial release

Meta

Distributed under the MIT license. See LICENSE for more information.

https://github.com/koesie10/fsuipc-node

Contributing

  1. Fork it (https://github.com/koesie10/fsuipc-node/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.6%
  • TypeScript 3.0%
  • JavaScript 1.6%
  • Python 0.8%