itcast 6e512b8ce6 aaaa 4 months ago
..
dist 6e512b8ce6 aaaa 4 months ago
src 6e512b8ce6 aaaa 4 months ago
LICENSE 6e512b8ce6 aaaa 4 months ago
README.md 6e512b8ce6 aaaa 4 months ago
package.json 6e512b8ce6 aaaa 4 months ago

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");
}