UNPKG

quick-erd

Version:

quick and easy text-based ERD + code generator for migration, query, typescript types and orm entity

13 lines (12 loc) 355 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRootDir = isRootDir; function isRootDir(dir) { // for unix like system if (dir === '/') return true; // for windows like system, e.g. C:\ or C: if ((dir.length == 2 || dir.length == 3) && dir[1] == ':') return true; return false; }