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