README
pocket-tagger
A small node.js library for automatically tagging Pocket articles based on regular expressions
pocket-tagger
requires a minimum NodeJS version of 14.x
Usage
Make sure that you have a ~/.pocket/credentials
file that looks something like this:
[default]
consumer_key = "12345-abc123fniewof2023f"
access_token = "fwefi20r-232d-f2o2-2kd3"
You can use pocket-auth-cli to fetch your credentials if needed. Then, create a file with the following contents and run it (feel free to change the regex/rules used):
const PocketTagger = require("pocket-tagger");
(async function main(){
const tagger = await PocketTagger(
"default",
{
// Length related
'length-too-short': '^[\\s\\S]{0,5}