UNPKG

face-recognition

Version:

Simple Node.js API for robust face detection and face recognition.

8 lines (7 loc) 218 B
const path = require('path') exports.resolvePath = (filePath, file) => { if (!filePath) { return undefined } return (file ? path.resolve(filePath, file) : path.resolve(filePath)).replace(/\\/g, '/') }