README
url-filters
Usage
import { encode, decode } from '@sentisis/url-filters';
const encoded = encode({
source: 'TWITTER',
sentiment: { or: ['POSITIVE'] },
});
const filters = decode(encoded);
Encoding/Decoding function for the filters
<script type="module">
import sentisisUrlFilters from 'https://cdn.skypack.dev/@sentisis/url-filters';
</script>
import { encode, decode } from '@sentisis/url-filters';
const encoded = encode({
source: 'TWITTER',
sentiment: { or: ['POSITIVE'] },
});
const filters = decode(encoded);