MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / getUserHomeDirectory

Function getUserHomeDirectory

electron/image_classifier.js:256–260  ·  view source on GitHub ↗

Get the user's home directory (Node.js only).

()

Source from the content-addressed store, hash-verified

254
255/** Get the user's home directory (Node.js only). */
256function getUserHomeDirectory() {
257 // Based on:
258 // https://stackoverflow.com/questions/9080085/node-js-find-home-directory-in-platform-agnostic-way
259 return process.env[process.platform === 'win32' ? 'USERPROFILE' : 'HOME'];
260}
261

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected