import { IndexResponse , MeiliSearch } from '../../../../src/' ; const config = { host : 'http://127.0.0.1:7700' , apiKey : 'masterKey' } ; const client = new MeiliSearch ( config ) ; const user = 'MeiliSearch User' ; function greeter ( person ) { return 'Hello, ' + person ; } ; ( async ( ) => { const indexes = await client . getIndexes ( ) ; console . log ( { indexes } , 'hello' ) ; const uids = indexes . map ( ( index ) => index . uid ) ; document . body . innerHTML = `${ greeter ( user ) } this is the list of all your indexes: \n ${ uids . join ( ', ' ) }` ; } ) ( ) ;