Skip to content

Instantly share code, notes, and snippets.

View VallarasuS's full-sized avatar
🎯
Focusing

Vallarasu Sambathkumar VallarasuS

🎯
Focusing
View GitHub Profile
@VallarasuS
VallarasuS / firebug-xpath.js
Last active January 30, 2017 01:34 — forked from nfeldman/firebug-xpath.js
Standalone version of XPath Module from Firebug, assumes strings have a trim method
// AMD, Node flavored CommonJS, and old fashion global
(function (global, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();