UNPKG

anticaptcha2

Version:

A simple client to solve captchas using https://anti-captcha.com

14 lines (9 loc) 313 B
'use strict'; const InputField = require('./field').InputField; class RadioField extends InputField { constructor(label, name, keyvals = {}) { let opts = Object.keys(keyvals).map(key => ({ value: key, caption: keyvals[key] }) ); super(label, 'radio', name, opts); } } module.exports = RadioField;