node-bencode icon indicating copy to clipboard operation
node-bencode copied to clipboard

bencode de/encoder for nodejs

Results 32 node-bencode issues
Sort by recently updated
recently updated
newest added

## purpose [ ] Documentation update [x] Bug fix [ ] New feature [ ] Other ## before ``` $ npm run benchmark > [email protected] benchmark > nanobench benchmark/*.js /tmp/node-bencode/node_modules/nanobench/run.js:7...

the readme has examples only to decode strings, but not files ```js import fs from 'fs' import bencode from 'bencode' var buffer = fs.readFileSync('input.torrent') var objectUtf8 = bencode.decode(buffer, 'utf8') console.log(objectUtf8)...

# Bug `node-bencode` can produce dictionary entries with duplicate keys. ----- `node-bencode` assumes that binary string keys made out of unique Javascript string keys are unique as well, **which is...

# Bug: it fails to satisfy the specification. > ## [BEP 52 — The BitTorrent protocol specification version 2](https://www.bittorrent.org/beps/bep_0052.html) > > Integers have no size limitation. Currently, _node-bencode_ allows decoded...

# Bug https://github.com/webtorrent/node-bencode/blob/2fa2c7ea7d97791a0c7f0cb3dd0bb098c014738f/lib/encode.js#L80-L81 ```Javascript // fix for issue #13 - sorted dicts const keys = Object.keys(data).sort() ``` This is **not** the correct way of sorting dictionary entries. ----- When you...

**What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [X] Bug fix [ ] New feature [ ] Other, please explain:...

**What version of this package are you using?** Latest **What operating system, Node.js, and npm version?** Arch Linux, latest Node LTS (v20) **What happened?** `decode.bytes` returns the length of the...

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [standard](https://standardjs.com) ([source](https://redirect.github.com/standard/standard)) | [`17.1.0` -> `17.1.2`](https://renovatebot.com/diffs/npm/standard/17.1.0/17.1.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/standard/17.1.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/standard/17.1.0/17.1.2?slim=true) | --- ###...

dependencies

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/cache](https://redirect.github.com/actions/cache) | action | major | `v3` -> `v5` | --- ### Release...

dependencies

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [node](https://redirect.github.com/actions/node-versions) | uses-with | major | `18` -> `24` | --- ### Release...

dependencies