Turns objects into filesystems so navigating through them is a breeze. This is useful for navigating through complex hierarchies.
But the module was mainly made as a joke. I'm not even sure why it exists.
var ofs =var data =x:y:z: "abc"DNA: 'ACT' 'GAT' 'CTT'var filesystem =/** Give it a path*/filesystem //--> 'abc'/** It works with array indices too!*/filesystem //--> 'ACT'
var filesystem = ofs(object)
Wraps an object in an
A miniature env for your objective filesystem. You can use this to cache key-value data.
env() with no arguments returns an object containing all environment variables. Calling
variable or both
newValue returns the environment variable for that key.
variable: (String) the name of the environment variable you are requesting
newValue: optionally set the variable for that key to a new value.
Takes a string as an argument and returns the object(if it exists) for that path in the filesystem. The path follows Unix path conventions, with forward slashes to delimit directories, '.' to represent the current directory, '..' to represent the superdirectory and '/' to represent root.
Virtually changes the current directory to
Returns the current object, as in the current directory, which can be changed with
Creates an object at the given path. Will replace the root object if specified, so be careful.
Takes a path as an argument and returns the object located at that path.