From 203791c1f7b28c4c2f945116671ea93bfa74f5da Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 14 Mar 2017 08:18:37 -0700 Subject: [PATCH] node: add `location` method. --- lib/node/node.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/node/node.js b/lib/node/node.js index b0237fa3..d7014239 100644 --- a/lib/node/node.js +++ b/lib/node/node.js @@ -122,6 +122,16 @@ Node.prototype.ensure = function ensure() { return this.config.ensure(); }; +/** + * Create a file path using `prefix`. + * @param {String} file + * @returns {String} + */ + +Node.prototype.location = function location(name) { + return this.config.location(name); +}; + /** * Open node. Bind all events. * @private