@apollo/utils.isnodelike
v3.0.0
Published
Node environment detection utility
Downloads
4,395,312
Readme
isNodeLike
A simple constant to determine if the current environment is Node-like by
inspecting the process
global for Node-specific properties.
Usage
import { isNodeLike } from "@apollo/utils.isnodelike";
if (isNodeLike) {
require("fs").readFileSync("foo");
}