fable-compiler / fable-node Goto Github PK
View Code? Open in Web Editor NEWBindings for node.js native modules
License: MIT License
Bindings for node.js native modules
License: MIT License
Node provides TextEncoder class that implements the same interface as the browser api in a "util" namespace util.TextEncoder
as well as a global object.
their is no bindings for options argument passed to fs.mkdirSync with
fs.mkdirSync ("temp/db", { recursive: true, mode: "mymode" })
https://nodejs.org/api/fs.html#fs_fs_mkdir_path_options_callback
No Console types found so far in the API. Is it something that was just missing or left out on purpose?
@MangelMaxime @nojaf @whitetigle I've ported the bindings from fable-import. You should have write access to this repository.
I've tried to do something similar to fable-browser namespaces. However in this case all modules need to be qualified to prevent name conflicts. But now you only need to open Node
to start invoking modules.
I've removed interfaces already included in Fable.Core.JS and replaced Function
with ('FIn->'FOut)
but there may be a better solution for that.
It's building but I haven't tested it, please have a look and feel free to change anything (I've also added a couple of other issues as ideas to improve the bindings). Then you can publish the package with the Fable.Node
id :)
Hi,
since we're moving out of the "tinkering with Fable and Node.js" side with these brand new bindings, what do we want to support?
I started revamping APIs to support LTS and maybe new experimental features. But do we need to support legacy, pre 10.x as well? (Node.js 6? Nodejs 8?).
We have been keeping track of the progress to publish all libraries to Fable.Core 3.0 stable. Looks like package is still on the beta version. Can you please release a stable version too? if not, what is needed and how can I help?
Cheers
The typescript node typings are more up to date and ts2fable could generate all bindings, no?
It's possible or maybe a good option, to use ts2fable to generate partial types from @types/node?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.