Module
Node.Globals
- Package
- purescript-node-process
- Repository
- purescript-node/purescript-node-process
Global objects exposed by Node.js. See also the Node.js API documentation.
#__filename Source
__filename :: String
The absolute path of the code file being executed.
Note that this will probably not give you a very useful answer unless you
have bundled up your PureScript code using purs bundle
!
#unsafeRequire Source
unsafeRequire :: forall a. String -> a
Just calls require
. You might also consider using the FFI instead. This
function is, in general, horribly unsafe, and may perform side effects.
- Modules
- Node.
Globals - Node.
Platform - Node.
Process