|
|
2 年 前 | |
|---|---|---|
| .. | ||
| dist | 2 年 前 | |
| src | 2 年 前 | |
| LICENSE | 2 年 前 | |
| README.md | 2 年 前 | |
| package.json | 2 年 前 | |
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");
}