EstraAPI Documentation
  • EstraAPI - Information
  • API Examples
    • EstraList
    • Response
  • Language Examples
    • NodeJS
      • Installation
      • Examples
    • Python
      • Installation
      • Examples
    • Dart
      • Installation
      • Examples
    • Ruby
      • Installation
      • Examples
Powered by GitBook
On this page
  • Async Examples
  • Promise Examples
  1. Language Examples
  2. NodeJS

Examples

All examples of EstraAPI will be in this page with JavaScript (NodeJS) Language

Async Examples

import { EstraClient } from "estrajs";
// or const EstraClient = require('estrajs');

const Client = new EstraClient();

async function func1() {
    console.log(await Client.sfw.hug());
}

func1();

Promise Examples

import { EstraClient } from "estrajs";
// or const EstraClient = require('estrajs');

const Client = new EstraClient();

Client.sfw.run().then((output) => {
    console.log(output)}
);
PreviousInstallationNextPython

Last updated 3 years ago