itcast 6e512b8ce6 aaaa 10 bulan lalu
..
dist 6e512b8ce6 aaaa 10 bulan lalu
src 6e512b8ce6 aaaa 10 bulan lalu
LICENSE 6e512b8ce6 aaaa 10 bulan lalu
README.md 6e512b8ce6 aaaa 10 bulan lalu
package.json 6e512b8ce6 aaaa 10 bulan lalu

README.md

isNodeLike

A simple constant to determine if the current environment is Node-like by inspecting the process global for Node-specific properties.

Usage

import { isNodeLike } from "@apollo/utils.isnodelike";

if (isNodeLike) {
  require("fs").readFileSync("foo");
}