no elements for you
Instrument code and throw if it ever touches an Element
Use
var nope = require('no-elements-for-you');
var niceTry = nope(function () {
return document.getElementsByTagName('body');
});
niceTry();
// -> throws
License
MIT
Instrument code and throw if it ever touches an Element
var nope = require('no-elements-for-you');
var niceTry = nope(function () {
return document.getElementsByTagName('body');
});
niceTry();
// -> throws
MIT
npm i no-elements-for-you
0
0.0.0
MIT