|
|
10 months ago | |
|---|---|---|
| .. | ||
| dist | 10 months ago | |
| src | 10 months ago | |
| LICENSE | 10 months ago | |
| README.md | 10 months ago | |
| package.json | 10 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");
}