published: node caption-check.mjs caption.txt run: node caption-check.mjs caption.txt UTF-16 units : 182 (limit 2200: ok, 2018 left) code points : 181 (limit 2200: ok, 2019 left) graphemes : 181 (limit 2200: ok, 2019 left) UTF-8 bytes : 184 hashtags : 5 (Help Center: up to 5: ok, 0 left; Meta API: up to 30: ok, 25 left) @ mentions : 0 (Meta API: up to 20: ok, 20 left) first 125 graphemes: Weeknight pasta in 15 minutes 🥐 / Three pantry ingredients, one pan, and a sauce that clings. / Save this for Thursday. Full reci exit=0 published: node caption-check.mjs caption.txt run: node caption-check.mjs caption-edge.txt UTF-16 units : 2350 (limit 2200: OVER by 150) code points : 2346 (limit 2200: OVER by 146) graphemes : 2337 (limit 2200: OVER by 137) UTF-8 bytes : 2368 hashtags : 7 (Help Center: up to 5: OVER by 2; Meta API: up to 30: ok, 23 left) @ mentions : 2 (Meta API: up to 20: ok, 18 left) first 125 graphemes: Café menu update 🥐 / Thanks @ana.bakes and @leo_pastry for the photos 👨‍👩‍👧 / café café café café café / #one #two #three #four #five exit=0 edge: caption-edge.txt has CRLF line breaks, a family emoji, a decomposed e + accent, 7 hashtags, 2 mentions and 2,350 UTF-16 units, so every limit flag is OVER published: node caption-check.mjs caption.txt 80 run: node caption-check.mjs caption.txt 80 UTF-16 units : 182 (limit 2200: ok, 2018 left) code points : 181 (limit 2200: ok, 2019 left) graphemes : 181 (limit 2200: ok, 2019 left) UTF-8 bytes : 184 hashtags : 5 (Help Center: up to 5: ok, 0 left; Meta API: up to 30: ok, 25 left) @ mentions : 0 (Meta API: up to 20: ok, 20 left) first 80 graphemes: Weeknight pasta in 15 minutes 🥐 / Three pantry ingredients, one pan, and a sauce t exit=0 edge: optional second argument shortens the preview to 80 graphemes published: node caption-check.mjs caption.txt run: node caption-check.mjs missing.txt file not found: missing.txt exit=2 edge: file that does not exist: prints a message and exits 2 cross-check of caption-edge.txt in Python (independent count): utf16 units 2350 code points 2346 utf8 bytes 2368