|
|
il y a 10 mois | |
|---|---|---|
| .. | ||
| dist | il y a 10 mois | |
| src | il y a 10 mois | |
| LICENSE | il y a 10 mois | |
| README.md | il y a 10 mois | |
| package.json | il y a 10 mois | |
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");
}