UNPKG
jayvfs
Version:
latest (0.1.1)
0.1.1
virtual file system in node-js
github.com/Anarcroth/jayVFS
Anarcroth/jayVFS
jayvfs
/
src
/
inode.js
16 lines
(12 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var
iNode =
function
(
name
) {
this
.
name
= name;
this
.
location
=
''
;
this
.
contents
=
''
; }; iNode.
prototype
.
set
=
function
(
text
) {
this
.
contents
= text; }; iNode.
prototype
.
append
=
function
(
text
) {
this
.
contents
+= text; };
module
.
exports
= iNode;