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