Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to a npm #5

Open
tracker1 opened this issue Apr 11, 2014 · 3 comments
Open

Add to a npm #5

tracker1 opened this issue Apr 11, 2014 · 3 comments

Comments

@tracker1
Copy link

It would be cool to see this added to npm ... could start with just the windows binaries as part of a package.json, then extend that to include a build process for unix/mono targets.

Since this project already depends on typescript/npm, it would be a decent fit. Would be willing to help with this.

@praeclarum
Copy link
Owner

Yes, I absolutely want this but just wasn't sure how to package it.

The binary is just straight .NET so works on Windows and Mono. Just need to write the right scripts for npm. Where do we start?

praeclarum pushed a commit that referenced this issue Jan 31, 2018
Implemented some methods for Enumerable class in mscorlib
@geekley
Copy link

geekley commented Dec 4, 2020

Yes, please!

Also, I'm now curious... would it be theoretically possible to use netjs to convert itself to a cross-platform node.js project? 🤔

@tracker1
Copy link
Author

Wow, hadn't even looked at this in very long... would effectively need a package.json, and the runtime program in a directory... from there, would likely want a cmd.js that is a binary in the package.json that could act as an intermediary for the application executable... check to see if an appropriate runtime is available, then pass the commands to the application, or respond with a message stating that .Net, .Net Core and/or Mono need to be installed on the system to run the module.

From there, an index.js as a module default would be nice to expose a similar check, to take input file(s) then output via the executable, returning the raw results and/or parsed result object from the .Net app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants