|
8 months ago | |
---|---|---|
.. | ||
dist | 8 months ago | |
src | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
package.json | 8 months ago |
A simple constant to determine if the current environment is Node-like by
inspecting the process
global for Node-specific properties.
import { isNodeLike } from "@apollo/utils.isnodelike";
if (isNodeLike) {
require("fs").readFileSync("foo");
}