net
net covers paths, URLs, and the pieces around them. Like lang, it does not depend on the Apps Script runtime.
Packages
Package | Covers |
|---|---|
| path joining, normalisation, parsing, and classification |
| URL validation |
| reserved; not implemented yet |
Request authentication lives in appsscript/net rather than here, because it is bound to the Apps Script request object — see appsscript.
Paths
These mirror the shape of Node's path module, which makes them useful for building Drive folder paths and for any code that has to assemble a location out of parts without a real filesystem underneath.
Domains and URLs
isUrl accepts the http, https, and ftp schemes and requires a non-empty authority, so it rejects a bare scheme such as "https://". It does not accept mailto: or a protocol-relative //example.com.
Full list
path module lists the path functions. isUrl is listed with the runtime-independent functions in Base utilities.
This documentation was generated with AI (Claude) from the library's source code.