Generate a CSS selector string to target the given node
You can use with an AMD loader or vanilla javascript.
You can directly download the Development Version or the Production Version from the root folder
$ bower install CSSelector.js
$ jam install CSSelector.js
// AMD
require(['path/to/CSSelector.js'], function (CSSelector) {
// CSSelector(el);
});
// CommonJS
var CSSelector = require('CSSelector');
<!-- Vanilla javascript -->
<script src="path/to/CSSelector.js"></script>
<script>
console.log(CSSelector(el));
</script>