Miscellaneous

Other functions provided by Dubnium.

Directory

Change

db.config.dir = './new/dir'

Make

db.dir()

Get path

db.dirPath

Iterate

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

callback

Callback

function

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

target

Path to a directory where the symlink will be created

String

Get Record's Stats

Content to String & JSON

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.

Exit

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

FS

Run any fs method on the Record or database.

Execute Bash

Parameter
About
Type
Required

command

The command (include arguments)

string

callback

Callback

function

Internal Functions

Dubnium exports some internal functions that can be used in your project.

Aliases

Don't like the name we chose for a method? Set an alias!

For example,

Last updated

Was this helpful?