0.1.0 • Published 8 years ago

mfilesapi v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

MFilesAPI for Node.js

MFilesAPI COM wrapper for Node.js

Installation

npm install mfilesapi

Uses on M-Files API. Only compatible with Windows

Usage

require( 'mfilesapi' ).load( function( err, mfilesapi ) {

    var app = new mfilesapi.MFilesServerApplication();
    app.Connect();
    
    var vault = app.GetVaults()[ 0 ];
} );

Caveats

  • TypeLib loading is asynchronous.
  • Collection indexes are zero-based. Use get_Item() for the raw one-based getter.

Future plans

  • Replace the async registry lookup with synchronous code. This would allow normal require().