Skip to content

Instantly share code, notes, and snippets.

@mcka1n
Created January 6, 2015 17:57
Show Gist options
  • Save mcka1n/3cf3288453320eedbecd to your computer and use it in GitHub Desktop.
Save mcka1n/3cf3288453320eedbecd to your computer and use it in GitHub Desktop.
NodeJS wrapper for C#
var edge = require('edge');
var helloWorld = edge.func(function () {/*
async (input) => {
#r "System.Data.dll"
#r "C:\Program Files (x86)\DigitalOfficePro\HTML5PointSDK\Include\DigitalOfficePro.Html5PointSdk.dll"
using System;
using DigitalOfficePro.Html5PointSdk;
PresentationConverter presentationConverter = new PresentationConverter();
presentationConverter.OpenPresentation("D:\\xpand_scripts\\cs.pptx");
presentationConverter.Convert("D:\\xpand_scripts\\output\\meh.html");
return ".NET Welcomes " + input.ToString();
}
*/});
helloWorld('JavaScript', function (error, result) {
if (error) throw error;
console.log(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment