@methodwakfu-public/waktrinser
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

Waktrinser

A Node.js module that parse wakfu localized string and replace arguments with computed paramaters

Installation

npm install @methodwakfu-public/waktrinser --save
yarn add @methodwakfu-public/waktrinser
bower install @methodwakfu-public/waktrinser --save

Usage

Javascript

var waktrinser = require('@methodwakfu-public/waktrinser');
var parsedString = waktrinser.decodeString('Renvoie |[#7.3]*100|% des dégâts', [0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0.001], 100);
Output should be 'Renvoie 10% des dégâts'

TypeScript

import Waktrinser from '@methodwakfu-public/waktrinser';
console.log(Waktrinser.decodeString('Renvoie |[#7.3]*100|% des dégâts', [0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0.001], 100);
Output should be 'Renvoie 10% des dégâts'

AMD

define(function(require,exports,module){
  var waktrinser = require('@methodwakfu-public/waktrinser');
});

Test

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i @methodwakfu-public/waktrinser

Weekly Downloads

10

Version

0.1.9

License

MIT

Unpacked Size

308 kB

Total Files

28

Last publish

Collaborators

  • veecyn