|
hace 4 meses | |
---|---|---|
.. | ||
dist | hace 4 meses | |
src | hace 4 meses | |
LICENSE | hace 4 meses | |
README.md | hace 4 meses | |
package.json | hace 4 meses |
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");
}