nl_tokens: Get all contents of the table / json file object
pl_tokens: function getAll ( ) { var fname = '' ; var callback ; var tableName = arguments [ 0 ] ; if ( arguments . length === 2 ) { fname = path . join ( userData , tableName + '.json' ) ; callback = arguments [ 1 ] ; } else if ( arguments . length === 3 ) { fname = path . join ( arguments [ 1 ] , arguments [ 0 ] + '.json' ) ; callback = arguments [ 2 ] ; } let exists = fs . existsSync ( fname ) ; if ( exists ) { try { let table = JSON . parse ( fs . readFileSync ( fname ) ) ; callback ( true , table [ tableName ] ) ; return ; } catch ( e ) { callback ( false , [ ] ) ; return ; } } else { <mask> ( false , 'Table file does not exist!' ) ; return ; } }