30. July 2020
Miscellaneous Findings III: Unix text tricks
For this round of Miscellaneous Findings, we have a bunch of ways to mess with text. They all use tools that come with Unix, so they should work without having to install extra junk, if you are working on a Unix-based OS. The last finding, using regexes in sed
, I found particularly useful for converting hundreds of JS files that used CommonJS (e.g. var something = require('something')
) to use ES Modules (import something from 'something'
)
This is a roundup of miscellaneous things that I’ve found out about (or have rediscovered).