UNPKG

sails-inverse-model

Version:

Sails Inverse Model helps you build models, controllers and views JS Sails from any database. In addition, you can quickly and individually generate each model, view, controller or all three at the same time.

16 lines (15 loc) 424 B
// Concat text concat = function (text1, text2) { if (process.platform === 'win32') { if(text1.search(/^[a=zA-Z]:/gm) > -1 ){ if(text1.search(/\genviews$/gm) > -1 ){ return text1.concat("\\").concat(text2); } return text2; }else{ return text1.concat("\\").concat(text2); } } else { return text1.concat("/").concat(text2); } };