@assylman/riverpod-cli
Version:
nodejs cli for creating well structured flutter riverpod folders and files needed to work with Riverpod plugin
15 lines (14 loc) • 373 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formattingTarget = formattingTarget;
function formattingTarget(target) {
if (target.length > 1) {
const firstChar = target[0];
if (firstChar) {
if (firstChar != '/') {
return '/' + target;
}
}
}
return target;
}