PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/multibase/src
Просмотр файла: base.js
'use strict'
class Base {
constructor (name, code, implementation, alphabet) {
this.name = name
this.code = code
this.alphabet = alphabet
if (implementation && alphabet) {
this.engine = implementation(alphabet)
}
}
encode (stringOrBuffer) {
return this.engine.encode(stringOrBuffer)
}
decode (stringOrBuffer) {
return this.engine.decode(stringOrBuffer)
}
isImplemented () {
return this.engine
}
}
module.exports = Base
Выполнить команду
Для локальной разработки. Не используйте в интернете!