-
Notifications
You must be signed in to change notification settings - Fork 5
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
fs/system apis #47
Comments
In general if you:
It will resolve back to ObservableHQ.com But if you use relative paths:
It will resolve locally. Finally you can use "fetch" to get local files with relative paths or full URLs to get remote ones. |
You can also access all Observable StdLib functions: https://github.com/observablehq/stdlib |
in ojb/omd preview neither local or remote |
Sorry - I assumed you were using the ObservableJS Notebook feature (create a file with a ".ojsnb" file extension)... If you give me a code snippet as an example, I will see what I can come up with - it should be relativly easy enough to find a workaround with the built in preview, but when exported to a standalone html page then you will be at the mercy of the usual CORs rules between hosting web server and API server. |
@knoopx FYI @hpcc-js/observable-md is being deprecated soon, you should switch to @hpcc-js/obersvablehq-compiler |
i see there's some fs module but I can't figure how to use. are fs/system apis supported in any way? what about running in a nodejs context? also what about CORS?
The text was updated successfully, but these errors were encountered: