{"name":"ethereumjs-util","version":"6.2.0","description":"a collection of utility functions for Ethereum","main":"dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"ethereumjs-config-build","prepublishOnly":"npm run test && npm run build","coverage":"npm run build && istanbul cover _mocha","coveralls":"npm run coverage && coveralls <coverage/lcov.info","docs:build":"typedoc --out docs --mode file --readme none --theme markdown --mdEngine github --gitRevision master --excludeNotExported src","format":"ethereumjs-config-format","format:fix":"ethereumjs-config-format-fix","lint":"ethereumjs-config-lint","lint:fix":"ethereumjs-config-lint-fix","test":"npm run lint && npm run test:node && npm run test:browser","test:browser":"npm run build && karma start karma.conf.js","test:node":"npm run build && istanbul test mocha -- --reporter spec","tsc":"ethereumjs-config-tsc","tslint":"ethereumjs-config-tslint","tslint:fix":"ethereumjs-config-tslint-fix"},"husky":{"hooks":{"pre-push":"npm run lint"}},"repository":{"type":"git","url":"git+https://github.com/ethereumjs/ethereumjs-util.git"},"keywords":["ethereum","utilties"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"contributors":[{"name":"Tim Coulter","email":"tim@timothyjcoulter.com","url":"https://github.com/tcoulter"},{"name":"Nick Dodson","url":"https://github.com/SilentCicero"},{"name":"Mr. Chico","url":"https://github.com/MrChico"},{"name":"Dũng Trần","email":"tad88.dev@gmail.com","url":"https://github.com/tad88dev"},{"name":"Alex Beregszaszi","email":"alex@rtfs.hu","url":"https://github.com/axic"},{"name":"Taylor Gerring","url":"https://github.com/tgerring"},{"name":"Kirill Fomichev","email":"fanatid@ya.ru","url":"https://github.com/fanatid"},{"name":"kumavis","email":"aaron@kumavis.me","url":"https://github.com/kumavis"},{"name":"Alexander Sinyagin","email":"sinyagin.alexander@gmail.com","url":"https://github.com/asinyagin"}],"license":"MPL-2.0","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-util/issues"},"homepage":"https://github.com/ethereumjs/ethereumjs-util","dependencies":{"@types/bn.js":"^4.11.3","bn.js":"^4.11.0","create-hash":"^1.1.2","ethjs-util":"0.1.6","keccak":"^2.0.0","rlp":"^2.2.3","secp256k1":"^3.0.1"},"devDependencies":{"@ethereumjs/config-prettier":"^1.1.0","@ethereumjs/config-tsc":"^1.1.0","@ethereumjs/config-tslint":"^1.1.0","@types/node":"^11.9.0","babel-cli":"^6.26.0","babel-preset-env":"^1.6.1","babelify":"^8.0.0","browserify":"^14.0.0","contributor":"^0.1.25","coveralls":"^3.0.0","husky":"^2.1.0","istanbul":"^0.4.1","karma":"^4.0.0","karma-browserify":"^5.0.0","karma-chrome-launcher":"^2.0.0","karma-detect-browsers":"2.2.6","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.3.0","mocha":"^6.0.0","prettier":"^1.15.3","tslint":"^5.12.0","typedoc":"^0.14.0","typedoc-plugin-markdown":"^1.1.21","typescript":"^3.2.2","typestrict":"^1.0.2"},"gitHead":"93544654c1b38775c2e87c8e8d6e66bf4ef7b8b3","_id":"ethereumjs-util@6.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"dist":{"integrity":"sha512-vb0XN9J2QGdZGIEKG2vXM+kUdEivUfU6Wmi5y0cg+LRhDYKnXIZ/Lz7XjFbHRR9VIKq2lVGLzGBkA++y2nOdOQ==","shasum":"23ec79b2488a7d041242f01e25f24e5ad0357960","tarball":"http://registry-npm.ywwl.com/ethereumjs-util/download/ethereumjs-util-6.2.0.tgz","fileCount":25,"unpackedSize":80889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdw/SdCRA9TVsSAnZWagAAgGIQAIHTv8dWm4DnmCy20+/q\nNclPqce7tGNgCEDLPKTtPxNmGVkWNVByQr1XbquLQet6RW3mqQ75PmqG7U0V\nKRxbRurWar4TEg6+ceLVwjRfqodziiIpJNqV9K1u0TRza+ohucKmsWKp8Hkn\n2SXq/jNz+0uceL1ff5x0klGE9naz5N5mpbsvIGrNNGLKcKJoC0q5UgAaEzGj\n4p1hp8CFFFg9lIFR/wRjuQOr0qiP4nnzDXaHQQPPi9SjAHkLeoEVea+Lct/D\nIOEKxWzM8P2sOguldLqtg4pvsYpoyY4Vk0dum2sRSe4zGU6EidwLpDWhfFON\nJHduHmJKUyT7voGK1xHVPr8Qbt5uZCrCNXva+7W35lmea9g1gsFrigeCQRUX\nFf+U01j2EDAhYFs0pXb6N4N4zw5i2pHU95zQFUtFu3QArJB85594aVeZUZ+H\nz7/JDnIyAgf3flAMqdvdZgG1lQyhW5KfIr863PkBR+rlK9/Ao9xPf6dHSmYd\nhFfY6YCCiVk7G5H0WNmBNhDKDkCL+UATKRkQJ0h4l22iODL/H5kESU969AQc\ntUd+j6vQ5xBUuVnMrLjJiq/ylFwmlvqY+Kn4uydDAOOV1b5q5t0mOe5FjYWE\ntde2FzG13i6WSVtjEHpqb63w96+CJUeZzgQLemT8z2KxfF9Tc4/q03U/w0Px\nERqP\r\n=EDSY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHRl5YibYd1RU5Pkkm0iXsHvLztXQOjFvFXZ4Fr7RwxAiEA/O1MaWGmNhGIZPImshD4AB+EfNgC4Lt9cMtyLELmbpU="}],"size":21450,"noattachment":false,"key":"/ethereumjs-util/-/ethereumjs-util-6.2.0.tgz"},"maintainers":[{"email":"alex@rtfs.hu","name":"axic"},{"email":"Holger.Drewes@gmail.com","name":"holgerd77"},{"email":"j-wasinger@hotmail.com","name":"jwasinger"},{"email":"null_radix@riseup.net","name":"null_radix"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethereumjs-util_6.2.0_1573123229070_0.44617749271377716"},"_hasShrinkwrap":false,"readme":"# ethereumjs-util\n\n[![NPM Package][util-npm-badge]][util-npm-link]\n[![GitHub Issues][util-issues-badge]][util-issues-link]\n[![Actions Status][util-actions-badge]][util-actions-link]\n[![Code Coverage][util-coverage-badge]][util-coverage-link]\n[![Discord][discord-badge]][discord-link]\n\nA collection of utility functions for Ethereum. It can be used in Node.js and in the browser with [browserify](http://browserify.org/).\n\n# INSTALL\n\n`npm install ethereumjs-util`\n\n# USAGE\n\n```js\nimport assert from 'assert'\nimport { isValidChecksumAddress, unpadBuffer, BN } from 'ethereumjs-util'\n\nassert.ok(isValidChecksumAddress('0x2F015C60E0be116B1f0CD534704Db9c92118FB6A'))\n\nassert.ok(unpadBuffer(Buffer.from('000000006600', 'hex')).equals(Buffer.from('6600', 'hex')))\n\nassert.ok(new BN('dead', 16).add(new BN('101010', 2)).eqn(57047))\n```\n\n# API\n\n## Documentation\n\nRead the [API docs](docs/).\n\n### Modules\n\n- [account](src/account.ts)\n  - Account class\n  - Private/public key and address-related functionality (creation, validation, conversion)\n- [address](src/address.ts)\n  - Address class and type\n- [bytes](src/bytes.ts)\n  - Byte-related helper and conversion functions\n- [constants](src/constants.ts)\n  - Exposed constants\n    - e.g. `KECCAK256_NULL_S` for string representation of Keccak-256 hash of null\n- [hash](src/hash.ts)\n  - Hash functions\n- [object](src/object.ts)\n  - Helper function for creating a binary object (`DEPRECATED`)\n- [signature](src/signature.ts)\n  - Signing, signature validation, conversion, recovery\n- [types](src/types.ts)\n  - Helpful TypeScript types\n- [internal](src/internal.ts)\n  - Internalized helper methods\n- [externals](src/externals.ts)\n  - Re-exports of `BN`, `rlp`\n\n### ethjs-util methods\n\nThe following methods are available by an internalized version of the [ethjs-util](https://github.com/ethjs/ethjs-util) package (`MIT` license), see [internal.ts](src/internal.ts). The original package is not maintained any more and the original functionality will be replaced by own implementations over time (starting with the `v7.1.3` release, October 2021).\n\n- arrayContainsArray\n- getBinarySize\n- stripHexPrefix\n- isHexPrefixed\n- isHexString\n- padToEven\n- fromAscii\n- fromUtf8\n- toUtf8\n- toAscii\n- getKeys\n\nThey can be imported by name:\n\n```js\nimport { stripHexPrefix } from 'ethereumjs-util'\n```\n\n### Re-Exports\n\n`ethereumjs-util` re-exports the following commonly-used libraries:\n\n- [BN.js](https://github.com/indutny/bn.js) (version `5.x`)\n- [rlp](https://github.com/ethereumjs/rlp) (version `2.x`)\n\nThey can be imported by name:\n\n```js\nimport { BN, rlp } from 'ethereumjs-util'\n```\n\n# EthereumJS\n\nSee our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices.\n\nIf you want to join for work or do improvements on the libraries have a look at our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html).\n\n# LICENSE\n\nMPL-2.0\n\n[util-npm-badge]: https://img.shields.io/npm/v/ethereumjs-util.svg\n[util-npm-link]: https://www.npmjs.org/package/ethereumjs-util\n[util-issues-badge]: https://img.shields.io/github/issues/ethereumjs/ethereumjs-monorepo/package:%20util?label=issues\n[util-issues-link]: https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aopen+is%3Aissue+label%3A\"package%3A+util\"\n[util-actions-badge]: https://github.com/ethereumjs/ethereumjs-monorepo/workflows/Util/badge.svg\n[util-actions-link]: https://github.com/ethereumjs/ethereumjs-monorepo/actions?query=workflow%3A%22Util%22\n[util-coverage-badge]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/branch/master/graph/badge.svg?flag=util\n[util-coverage-link]: https://codecov.io/gh/ethereumjs/ethereumjs-monorepo/tree/master/packages/util\n[discord-badge]: https://img.shields.io/static/v1?logo=discord&label=discord&message=Join&color=blue\n[discord-link]: https://discord.gg/TNwARpR\n","publish_time":1573123229264,"_cnpm_publish_time":1573123229264,"dist-tags":{"latest":"7.1.5"}}