Skip to content

Instantly share code, notes, and snippets.

View diegolameira's full-sized avatar

Diego Lameira diegolameira

View GitHub Profile
@diegolameira
diegolameira / increment_build_number.js
Created February 17, 2017 15:03
Cordova hook for incrementing build numbers
#!/usr/bin/env node
// Save hook under `project-root/hooks/before_prepare/`
//
// Don't forget to install xml2js using npm
// `$ npm install xml2js`
var fs = require('fs');
var xml2js = require('xml2js');
@diegolameira
diegolameira / string-utils.js
Created March 19, 2018 00:26 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str){
return str.toLowerCase();