UNPKG

noide

Version:

Web Editor built on hapi and nes websockets using browserify, superviews.js, bootstrap and the ACE editor.

18 lines (15 loc) 278 B
var extend = require('extend') function File (data) { extend(this, data) if (this.isDirectory) { this.expanded = false } } Object.defineProperties(File.prototype, { isFile: { get: function () { return !this.isDirectory } } }) module.exports = File