Skip to content

Native Node module for interfacing with FSUIPC

License

Notifications You must be signed in to change notification settings

Jety567/fsuipc-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 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.4.1:
    • Limit number of published files
  • 0.4.0:
    • Add support for requesting a connection to MSFS
    • Add support for writes
  • 0.3.0
    • Add support for Node 12.0, drop support for Node < 11.0
  • 0.2.0
    • Stability improvements
  • 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

Native Node module for interfacing with FSUIPC

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 94.7%
  • TypeScript 2.5%
  • JavaScript 2.1%
  • Python 0.7%