node: add location method.

This commit is contained in:
Christopher Jeffrey 2017-03-14 08:18:37 -07:00
parent a4e37cf9df
commit 203791c1f7
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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