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