no-elements-for-you
v0.0.0
Published
instrument code and throw if it ever touches an Element
Downloads
2
Maintainers
Readme
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