search_by_tags
0.1.0 • Public • Published Search by tag/s (search_by_tags)
How to use
const { searchByTags } = require('search_by_tags');
const res = searchByTags(['eq:a|b', 'eq:c', 'not:d']);
Example
- From input url like
https://api.example.com?tags=eq:a&tags=eq:b|c&tags=not:d
- To output:
{
eqAnd: ['a'],
eqOr: ['b','c'],
notEqAnd: ['d']
}
Tests
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.0
11
Version History
- VersionDownloads (Last 7 Days)
- 0.1.0
11
Package Sidebar
Install
Weekly Downloads