I started working on a lua script (not JSFX) that does this by gluing the item, analyzing the wav with
https://github.com/Youka/LuaWAV and then deleting the glued file. The library chokes on 32-bit wav’s though, so it would involve setting glue default to 16 or 24 bits...