diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -116,7 +116,7 @@ StandardValidationFilter.prototype.processString = function (content, relativePa
           messages: report.results[0].messages
         })
 
-        report.results[0].filePath = path.join(this.node, relativePath)
+        report.results[0].filePath = typeof this.node === 'string' ? path.join(this.node, relativePath) : relativePath
 
         if (process.env.test === 'true' && ( !report.results[0].messages.length || this.internalOptions.format)) {
           this.console.log(path.join(this.node, relativePath))
Dont assume node is a string