This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//exaple create new | |
var url = 'https://img.playbuzz.com/image/upload/v1482669775/iiilhdzd5gpore2a5buz.jpg'; | |
var optimizeTransformation = { | |
quality: 'auto', | |
fetch_format: 'auto', | |
flags: 'lossy' | |
}; | |
var result = your_new_cloudinary_function(url, optimizeTransformation); | |
// result should be: 'https://img.playbuzz.com/image/upload/f_auto,fl_lossy,q_auto/v1482669775/iiilhdzd5gpore2a5buz.jpg' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const fs = require('fs-extra'), | |
path = require('path'), | |
pjson = require('./package.json'), | |
pname = pjson.name, | |
currentModuleDistFiles = path.join(__dirname, '/dist'), | |
otherProjects = path.join(__dirname, '/../'); | |
// Run over all other projects on the parent folder | |
fs.readdir(otherProjects, (err, folders) => { |