@sentisis/url-filters

Encoding/Decoding function for the filters

Usage no npm install needed!

<script type="module">
  import sentisisUrlFilters from 'https://cdn.skypack.dev/@sentisis/url-filters';
</script>

README

url-filters

Usage

import { encode, decode } from '@sentisis/url-filters';

const encoded = encode({
  source: 'TWITTER',
  sentiment: { or: ['POSITIVE'] },
});

const filters = decode(encoded);