parse-torrent
parse-torrent copied to clipboard
parseTorrent.toMagnetURI is not a function
What version of this package are you using? 10.0.1
What operating system, Node.js, and npm version? Ubuntu 22.04.1 LTS Node v19.3.0 NPM 9.2.0
What happened?
If I use toMagnetURI like documentation says, I get parseTorrent.toMagnetURI is not a function
Bui if I import like this:
import { toMagnetURI } from 'parse-torrent';
Function works just fine.
What did you expect to happen? So can you fix the documentation, or code, to make it work properly.