We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The prototypes of string and buffer objects implement a set of functions in order to access the underlying taint information.
String.prototype.taint([String tag])
const x = 'foo'; const y = x.taint(); x.getTaint(); > [ ] y.getTaint(); > [ { begin: 0, end: 3, flow: [ [Object] ] } ]
String.prototype.isTainted()
const x = 'foo'.taint(); x.isTainted(); > true
String.prototype.getTaint()
const x = 'foo'.taint(); x.getTaint(); > [ { begin: 0, end: 3, flow: [ [Object] ] } ]
String.prototype.untaint()
const x = 'foo'.taint(); const y = x.untaint(); x.getTaint(); > [ { begin: 0, end: 3, flow: [ [Object] ] } ] y.getTaint(); > [ ]
process.taintVersion()
process.taintVersion() > "v0.2.0"