{"name":"ethereumjs-util","version":"4.0.2","description":"a collection of utility functions for Ethereum","main":"index.js","scripts":{"coverage":"istanbul cover _mocha","coveralls":"npm run coverage && coveralls <coverage/lcov.info","lint":"standard","prepublish":"npm run lint && npm run test","test":"npm run test:node && npm run test:browser","test:browser":"karma start karma.conf.js","test:node":"istanbul test node_modules/mocha/bin/_mocha -- --reporter spec","build:docs":"documentation --github  -f md ./index.js > ./docs/index.md"},"repository":{"type":"git","url":"git+https://github.com/ethereumjs/ethereumjs-util.git"},"keywords":["ethereum","utilties"],"author":{"name":"mjbecze","email":"mjbecze@gmail.com"},"contributors":[{"name":"Alex Beregszaszi","email":"alex@rtfs.hu"}],"license":"MPL-2.0","bugs":{"url":"https://github.com/ethereumjs/ethereumjs-util/issues"},"homepage":"https://github.com/ethereumjs/ethereumjs-util","dependencies":{"bn.js":"^4.8.0","keccakjs":"^0.1.0","rlp":"^2.0.0","secp256k1":"^3.0.1"},"devDependencies":{"browserify":"^13.0.0","coveralls":"^2.11.4","documentation":"^3.0.4","istanbul":"^0.4.1","karma":"^0.13.15","karma-browserify":"^5.0.0","karma-chrome-launcher":"^0.2.2","karma-detect-browsers":"^2.0.2","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^0.1.7","karma-mocha":"^0.2.1","mocha":"^2.3.4","standard":"^5.4.1"},"standard":{"globals":["describe","it"]},"gitHead":"8da8b5f25f4bec8b18b4c239e81d9d82cd18af27","_id":"ethereumjs-util@4.0.2","_shasum":"aef8c1d0309758c6af7a7a18130c7f6efe29d8b7","_from":".","_npmVersion":"3.8.0","_nodeVersion":"5.7.1","_npmUser":{"name":"null_radix","email":"mjbecze@gmail.com"},"dist":{"shasum":"aef8c1d0309758c6af7a7a18130c7f6efe29d8b7","tarball":"http://registry-npm.ywwl.com/ethereumjs-util/download/ethereumjs-util-4.0.2.tgz","integrity":"sha512-p+SEvjlFYv7N/38IKGrajKM9etQidbXRBnvTgY3DSfWzQmFvI0lm4yfULGKZiei2ozRE/ySqqjse4hxnXiq1Zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+FOFNiegDAe4248lyjFZJi2d52qyjc1IPRhXKIeKfQAiEAiXM2fCKuLoWU2+TCf2TURhKu4DJwpbumKk0bZeDBKFE="}],"size":10649,"noattachment":false,"key":"/ethereumjs-util/-/ethereumjs-util-4.0.2.tgz"},"maintainers":[{"name":"axic","email":"alex@rtfs.hu"},{"name":"null_radix","email":"mjbecze@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/ethereumjs-util-4.0.2.tgz_1457406258571_0.7653349947649986"},"directories":{},"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":1457406262496,"_cnpm_publish_time":1457406262496,"dist-tags":{"latest":"7.1.5"}}