Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edge-fs

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-fs - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

lib/edge-fs-coreclr.dll

11

lib/edge-fs.js

@@ -0,3 +1,10 @@

var path = require('path');
process.env.EDGE_FS_TOOLS = path.join(__dirname, 'tools')
exports.getCompiler = function () {
return process.env.EDGE_FS_NATIVE || (__dirname + '\\edge-fs.dll');
};
return process.env.EDGE_FS_NATIVE || ( process.env.EDGE_USE_CORECLR ? path.join(__dirname, 'edge-fs-coreclr.dll') : path.join(__dirname, 'edge-fs.dll'));
};
// exports.getBootstrapDependencyManifest = function() {
// return path.join(__dirname, 'edge-fs-coreclr.deps.json');
// }

28

package.json

@@ -8,3 +8,3 @@ {

},
"version": "0.2.0",
"version": "1.0.0",
"description": "Edge-fs: run F# and node.js code in-process with edge.js",

@@ -24,19 +24,15 @@ "tags": [

"engines": {
"node": ">= 0.6"
"node": ">= 16"
},
"licenses": [
{
"type": "Apache",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"license": "MIT",
"dependencies": {},
"homepage": "http://tjanczuk.github.com/edge",
"repository": {
"type": "git",
"url": "git@github.com:7sharp9/edge-fs.git"
},
"bugs": {
"url": "http://github.com/7sharp9/edge-fs/issues"
}
"homepage": "https://github.com/agracio/edge-fs",
"repository": {
"type": "git",
"url": "git@github.com:agracio/edge-fs.git"
},
"bugs": {
"url": "http://github.com/agracio/edge-fs/issues"
}
}

@@ -1,30 +0,44 @@

edge-fs
=======
## edge-fs
This is a F# compiler for edge.js.
### F# compiler for [Edge.js](https://github.com/agracio/edge-js).
See [edge.js overview](http://tjanczuk.github.com/edge) and [edge.js on GitHub](https://github.com/tjanczuk/egde) for more information.
### This library is based on https://github.com/7sharp9/edge-fs all credit for original work goes to Dave Thomas.
------
###Quick install guide
### Overview
It should be pretty easy to get going on Windows:
Install edge and edge-fs modules:
1. Make sure you have F# installed with Visual Studio 2012
2. Navigate to a test project
3. Install edge.js with `npm install edgejs -g` *(Note you dont have to do a global package install, just omit the -g)*
4. Install edge-fs into your test project with `npm install edge-fs -g`
5. create a test node.js file along the lines of:
```
npm install edge-js
npm install edge-fs
```
```javascript
var edge = require('edge');
server.js:
var helloWorld = edge.func('fs', 'fun input -> async{return ".NET welcomes " + input.ToString()}');
```javascript
var edge = require('edge-js');
helloWorld('JavaScript', function (error, result) {
if (error) throw error;
console.log(result);
});
var helloFs = edge.func('fs', function () {/*
fun input -> async {
return "F# welcomes " + input.ToString()
}
*/});
helloFs('Node.js', function (error, result) {
if (error) throw error;
console.log(result);
});
```
8. Test with ```node testfile.js```
Ill be writing more documentation over time.
Run and enjoy:
```
node server.js
F# welcomes Node.js
```
#### Supported .NET frameworks
* .NET 4.6.2
* .NET Standard 2.0
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc