1.2.2 • Published 7 years ago

bi-params-decorator v1.2.2

Weekly downloads
12
License
-
Repository
github
Last release
7 years ago

bi-params-decorator

Requirements

Node.js v8.0.0 or greater

Use

Installation

npm i bi-params-decorator --save

Init object and decorate url with parameters

import BiDecorator from 'bi-decorator';

const biDecorator = new BiDecorator({
    bi_s: 'internal',
    bi_c: 111,
    bi_m: 'automotive_txt',
    bi_term: 'some_tags'
});

const url = 'http://allegro.pl/dzial/motoryzacja';
const resultUrl = biDecorator.decorateWithTags(url);
// resultUrl equals 'http://allegro.pl/dzial/motoryzacja?bi_s=internal&bi_c=123&bi_m=automotive_txt'

Run unit tests

npm run test
1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago