{"id":29028621,"url":"https://github.com/aionnetwork/aion_rlp.js","last_synced_at":"2026-05-20T14:11:51.228Z","repository":{"id":57143357,"uuid":"145718062","full_name":"aionnetwork/aion_rlp.js","owner":"aionnetwork","description":"Aion flavoured RLP encoding","archived":false,"fork":false,"pushed_at":"2019-01-21T17:07:07.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T15:51:03.734Z","etag":null,"topics":["aion","rlp","serialization"],"latest_commit_sha":null,"homepage":"https://aion.network/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aionnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T14:08:59.000Z","updated_at":"2019-01-21T17:07:08.000Z","dependencies_parsed_at":"2022-09-03T18:40:54.841Z","dependency_job_id":null,"html_url":"https://github.com/aionnetwork/aion_rlp.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aionnetwork/aion_rlp.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionnetwork%2Faion_rlp.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionnetwork%2Faion_rlp.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionnetwork%2Faion_rlp.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionnetwork%2Faion_rlp.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aionnetwork","download_url":"https://codeload.github.com/aionnetwork/aion_rlp.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aionnetwork%2Faion_rlp.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268001830,"owners_count":24179280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aion","rlp","serialization"],"created_at":"2025-06-26T08:00:42.603Z","updated_at":"2026-05-20T14:11:46.204Z","avatar_url":"https://github.com/aionnetwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SYNOPSIS\n\n## INSTALL\n\n`npm install aion-rlp`   \n\ninstall with `-g` if you want to use the cli.\n\n## USAGE\n\n~~~~javascript\nvar RLP = require('aion-rlp');\nvar assert = require('assert');\n\nvar nestedList = [ [], [[]], [ [], [[]] ] ];\nvar encoded = RLP.encode(nestedList);\nvar decoded = RLP.decode(encoded);\nassert.deepEqual(nestedList, decoded);\n~~~~\n\n## API\n\n`rlp.encode(plain)` - RLP encodes an `Array`, `Buffer` or `String` and returns a `Buffer`.\n\n`rlp.decode(encoded, [skipRemainderCheck=false])` - Decodes an RLP encoded `Buffer`, `Array` or `String` and returns a `Buffer` or an `Array` of `Buffers`. If `skipRemainderCheck` is enabled, `rlp` will just decode the first rlp sequence in the buffer. By default, it would throw an error if there are more bytes in Buffer than used by rlp sequence.\n\nThe difference between ``aion-rlp`` and ``rlp`` is the alternative encoding of longs, therefore `rlp.encode(plain)` accepts an extra type `AionLong`, in addition to the base supported types.\n\n## CLI\n\n`rlp decode \u003chex string\u003e`   \n`rlp encode \u003cjson String\u003e`  \n\n## TESTS\n\nTest uses mocha. To run `npm test`\n\n## CODE COVERAGE\n\nInstall dev dependencies\n`npm install`\n\nRun\n`npm run coverage`\n\nThe results are at\n`coverage/lcov-report/index.html`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faionnetwork%2Faion_rlp.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faionnetwork%2Faion_rlp.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faionnetwork%2Faion_rlp.js/lists"}