{"name":"pvtsutils","version":"1.0.8","description":"pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.","main":"build/index.js","module":"build/index.es.js","types":"build/types/index.d.ts","scripts":{"prepare":"npm run build","test":"mocha","build":"npm run build:module && npm run build:types","clear":"rimraf build/*","rebuild":"npm run clear && npm run build","build:module":"rollup -c","build:types":"tsc -p tsconfig.types.json","lint":"tslint -p .","lint:fix":"tslint --fix -p .","prepub":"npm run lint && npm run rebuild","pub":"npm version patch && npm publish","postpub":"git push && git push --tags origin master","prepub:next":"npm run lint && npm run rebuild","pub:next":"npm version prerelease --preid=next && npm publish --tag next","postpub:next":"git push","coverage":"nyc npm test","coveralls":"nyc report --reporter=text-lcov | coveralls"},"keywords":["typescript","helper","util","convert","hex","utf8","base64","base64url","binary","assign"],"author":{"name":"PeculiarVentures"},"contributors":[{"name":"Miroshin Stepan","email":"microshine@mail.ru"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/PeculiarVentures/pvtsutils.git"},"bugs":{"url":"https://github.com/PeculiarVentures/pvtsutils/issues"},"homepage":"https://github.com/PeculiarVentures/pvtsutils#readme","dependencies":{"@types/node":"^10.17.9","tslib":"^1.10.0"},"devDependencies":{"@types/mocha":"^5.2.7","coveralls":"^3.0.9","mocha":"^6.2.2","nyc":"^14.1.1","rimraf":"^3.0.0","rollup":"^1.27.13","rollup-plugin-typescript2":"^0.25.3","ts-node":"^8.5.4","typescript":"^3.7.3"},"nyc":{"extension":[".ts",".tsx"],"include":["src/**/*.ts"],"exclude":["**/*.d.ts"],"reporter":["text-summary","html"]},"gitHead":"dfcf4bdb619fe451807720422112364a5202ec2a","_id":"pvtsutils@1.0.8","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-PfTeKLu5Y0RCcty8ir8Kp/4f6USilFOFVn6UU8nZHVcm7S786B6LhxsAOUkoGQb2YxVw3ts7OuxeSAGLph8Hlw==","shasum":"f1b1cab6ad2254a4f0aa070e814b953753fd4cc5","tarball":"http://registry-npm.ywwl.com/pvtsutils/download/pvtsutils-1.0.8.tgz","fileCount":9,"unpackedSize":21586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd93OzCRA9TVsSAnZWagAA4Q8P/2tRydLt4csoV9kFPWAf\nF6fmqXmTwwepvpESncuqq3QbLydUb2j69+2Vnb1n4Z7SJrgBzUqteILI9wSz\nNu8vWQzjX6kw5FWUNC5KXX6DvX/kQlY2o+hjHN9Cn5E56DXftWvX8NnRPBlt\nG5vsEg/8ofvlcN5OEkOLNeBpZY1gzM/b+JDkT+ADbnMHqp1tCQVeG64ZMWgU\nOw4F9GNKCZaueCoWsRNQ5r9byZSjT3SgxEn0mGkDCRs5Zjn/mWsy6oPW4Z9F\nmdA7MQXTdhAI7dF7pAV4s9K8Yr/aU2t25eFMjyKgGEaGdF9IfM7nk088JeCM\n2lZTfBqQzDqS/m+IBhKKxDMJXmr/AzUq+S+oxG/BQepSmsSSe2tgH1jHKOP8\nMAgKMVbeG898WoRY/oAxZX5lxVNwXtKhDjiQy5hA5ynXk7qKyU0WZ43qWDrl\nvdkzzYNVMH1/kCXNQ7V8PkVdUfp9lHi6VCgbimuLXTHI1c0X1r5fcCXg897M\nGY2zAMfjHc/eEY6UVYKMWI9bXLPr9kf7tCORx60prnwV+Q2G+v0YuTOd9WJ1\nmbDX7aqnS1+7EWUqemLX1lyIUlogP23VyyJ0nm1afsWN4kh/WDBY4lF5cExk\n3ay5Oh09rNc4oXB0vc70gsAhz67zJYsMKeNl9hgh+hD6UgISF+UHMPpUGAxa\nFl5a\r\n=6s2V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIEx6ohIuA5fM4EKt6VpjPyQjeo9H+VsIOVcsP/6nyUQIgEy9kYnOJ9X5/r63D6x8MJYBtBDqWeMC6Xb26UZO5TWA="}],"size":5447,"noattachment":false,"key":"/pvtsutils/-/pvtsutils-1.0.8.tgz"},"maintainers":[{"name":"microshine","email":"microshine@mail.ru"}],"_npmUser":{"name":"microshine","email":"microshine@mail.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pvtsutils_1.0.8_1576498099539_0.2691779284156042"},"_hasShrinkwrap":false,"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Coverage Status](https://coveralls.io/repos/github/PeculiarVentures/pvtsutils/badge.svg?branch=master)](https://coveralls.io/github/PeculiarVentures/pvtsutils?branch=master)\n[![Test](https://github.com/PeculiarVentures/pvtsutils/actions/workflows/test.yml/badge.svg)](https://github.com/PeculiarVentures/pvtsutils/actions/workflows/test.yml)\n\n# pvtsutils\npvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.\n\n## Install\n\n```\nnpm install pvtsutils\n```\n\n## Using\n\n```javascript\nconst utils = require(\"pvtsutils\");\n```\n\nThe `pvtsutils` namespace will always be available globally and also supports AMD loaders.\n\n## Types\n\nThere is an [index.d.ts](./index.d.ts) file which makes easy to use current module as external\n\n## Helpers\n\n### Convert\n\nHelps to convert `string` to `ArrayBuffer` and back\n\nConvert support next encoding types `hex`, `utf8`, `binary`, `base64`, `base64url`. `utf8` is default.\n\n#### Examples\n\nConverts string to buffer\n\n```javascript\nconst buf = Convert.FromString(\"some string\", \"hex\");\n```\n\nConverts buffer to string\n\n```javascript\nconst str = Convert.ToString(buf, \"utf8\");\n```\n\n### assign\n\nCopies properties from objects to a target object. [More info](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)\n\n#### Example\n\n```javascript\nconst obj = assign({}, {name: \"Bob\"}, {age: 12}); // {name: \"Bob\", age: 12}\n```\n\n### isEqual\n\nReturns `true` if 2 ArrayBuffers are equal\n\n### combine\n\nCombines some `ArrayBuffer` values\n\n#### Example\n\n```javascript\nconst buf1 = new Uint8Array([1, 2, 3]);\nconst buf2 = new Uint8Array([4, 5, 6]);\nconst buf = combine(buf1, buf2); // [1, 2, 3, 4, 5, 6]\n```\n\nSome example capabilities included in pvtsutils include:\n\n- Converting values to adn from hex,\n- Converting values to and from base64,\n- Working with base64 url,\n- Working with binary data.\n- And more...\n","publish_time":1576498099627,"_cnpm_publish_time":1576498099627,"dist-tags":{"latest":"1.3.6"}}