gw2-chat-code
Encode and decode guildwars2 chat codes, fork from gw2e-chat-codes
Install
npm install gw2-chat-code
Usage
; // type IType = 'skill' | 'item' | 'skin' | 'trait' | 'map' | 'recipe' | 'outfit' | 'objective'; // -> '[&BtIWAAA=]' // -> '[&AgGqtgDgrxYAAOpfAAAnYAAA]' // -> {type: 'skin', id: 5842} // -> [&Agr2LQEA]
Tests
npm test