Miscellaneous

Directory

Change

db.dirPath = './new/dir'

Make

db.dir()

Get path

db.dirPath

Iterate

db.iterate(filepath => {})
Parameter
About
Type
Required

callback

Callback

function

db.get('tag').createSymlink('./path/to/symlink') 
Parameter
About
Type
Required

dirPath

Path to a directory where the symlink will be created

String, filepath

Get Record's Stats

No parameters

Content to String & JSON

No parameters

End

If you want to end a string of methods, you can with .end(). It emits the end event and no methods can be added after it. Note: this is not required.

No parameters

Exit

If you wish to exit the Record editor API, call the exit() method and it will return the class.

No parameters

Something missing?

We have a other() method that can run any fs method on the Record or the custom() method to run a custom function without leaving the Record Editor API.

Other

Get the return value

Custom

Plugins

Plugins

Run bash command in the directory

Parameter
About
Type
Required

command

The command (include arguments)

string

callback

Callback

function

Or if you wish to have it added to the API, tell us!

returnType

About

Some functions have the returnType parameter. The values accepted are 1 and 2.

1

Return as JSON.

2

Return as an Array.

Last updated

Was this helpful?