Willow (GHOST)
🧙🏼♀️Working on Open Source! (she/her) 🎃
🐘 @onlyspaceghost@fosstodon.org
X @onlyspaceghost
- how many eslint rules do people have in their configs... I wonder if I am enabling too many xD
- Did you know there are at least 139 packages on npm that start with a hyphen/dash? Curiously some of them look like CLI flags! --frozen-lockfile --fix-lockfile --legacy-peer-deps --ignore-scripts --ignore-workspace-root-check You've also got the package with a single dash for a name `-`
- I compiled a list here if anyone is interested, although there may be more as I'm missing some packuments from my replica cache! gist.github.com/ghostdevv/db...
- `--frozen-lockfile`, `--ignore-scripts`, `--fix-lockfile`, and `--ignore-workspace-root-check` all contain one JS file from the same author - it's pretty incredible stuff actually
-
View full threadMaybe there are some more interesting ones out there? Just please don't install them in case they are malware! 😄
- just another day on the registry; code crashing because a field on the packument has random unicode null characters in it
- @lianghai.dev figured all of this out immediately (tysm), the original document was encoded with UTF-16LE (Little Endian), and if we look at the original file we can check its encoding
- Then if we open this using hexyl, we can see the pattern which is consistent with the example Wikipedia has for UTF-16LE hex en.wikipedia.org/wiki/UTF-16#...
- after some sleep I guess I will get to finally learn about string encoding in js! xD
- 👀
- @fosdem.org time!!