We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
njs
import fs from 'njs:fs'; or import fs from 'nginx:fs';
Import all modules that are not web standards but are supported by Nginx.
import fs from 'njs:fs'; import zlib from 'njs:zlib'; ...
In other JS runtimes, it is common to import modules using specific prefixes, for example, import path from "node:path".
import path from "node:path"
The text was updated successfully, but these errors were encountered:
Hi @PassionPI,
No, it is not supported yet. But, it looks like a good improvement. Will do.
Sorry, something went wrong.
xeioex
No branches or pull requests
It's possible to import the
njs
module like this?import fs from 'njs:fs';
or
import fs from 'nginx:fs';
Describe the solution you'd like
Import all modules that are not web standards but are supported by Nginx.
import fs from 'njs:fs';
import zlib from 'njs:zlib';
...
Describe alternatives you've considered
In other JS runtimes, it is common to import modules using specific prefixes, for example,
import path from "node:path"
.The text was updated successfully, but these errors were encountered: