0.1.9 • Published 5 years ago

@methodwakfu-public/waktrinser v0.1.9

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

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
0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago