npm install mfilesapi
Uses on M-Files API. Only compatible with Windows
require( 'mfilesapi' ).load( function( err, mfilesapi ) {
var app = new mfilesapi.MFilesServerApplication();
app.Connect();
var vault = app.GetVaults()[ 0 ];
} );
- TypeLib loading is asynchronous.
- Collection indexes are zero-based. Use
get_Item()for the raw one-based getter.
- Replace the async registry lookup with synchronous code. This would allow normal require().