rallf-js-sdk

1.0.0-beta.2 • Public • Published

RALLF Node.js SDK

Toolset to create, test & deploy Tasks for RALLF (NodeJS Edition)

CircleCI
npm Dependencies Downloads
License Website wiki

🔗 Getting Started 🔗 Creating 🔗 Running 🔗 CLI 🔗 Manifest 🔗 Skill 🔗 Task


Resources

Installing

To have access to global commands, run:

$ npm install rallf-js-sdk -g

For using for development, run inside your task project:

$ npm install rallf-js-sdk

Getting Started

Now you can check the Getting Started guide to start developing 🤖!

Overview

const rallf = require('rallf-js-sdk'); 
 
class MyTask extends rallf.Task {
  constructor() {
    super();
    this.firefox = null;
  }
 
  async warmup() {
    this.logger.debug('warmup');
    this.firefox = await this.devices.get('firefox');
    await this.firefox.get('https://github.com');
  }
 
  async start(input) {
    this.logger.debug(this.fqtn + ' started');
    return await this.firefox.getTitle();
  }
 
  async cooldown() {
    this.logger.debug('cooldown');
    await this.firefox.quit();
  }
}

Found a bug?

If you found a bug please leave us an issue.

Want to collaborate?

We love contributions from people, refer to the contributing guidelines for information on how to get started and how we work. Also and don't hesitate in contacting us.

Package Sidebar

Install

npm i rallf-js-sdk

Weekly Downloads

81

Version

1.0.0-beta.2

License

MIT

Unpacked Size

103 kB

Total Files

96

Last publish

Collaborators

  • logginjs
  • santoslluis