{"name":"pvtsutils","version":"1.0.14","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","browser":"build/index.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":{"tslib":"^2.0.1"},"devDependencies":{"@types/mocha":"^8.0.3","@types/node":"^12.12.62","coveralls":"^3.1.0","mocha":"^8.1.3","nyc":"^15.1.0","rimraf":"^3.0.2","rollup":"^2.28.2","rollup-plugin-typescript2":"^0.27.3","ts-node":"^9.0.0","tslint":"^6.1.3","typescript":"^4.0.3"},"nyc":{"extension":[".ts",".tsx"],"include":["src/**/*.ts"],"exclude":["**/*.d.ts"],"reporter":["text-summary","html"]},"mocha":{"require":"ts-node/register","extension":["ts"],"watch-files":["test/**/*.ts"]},"gitHead":"922b3bd478014cbead96f034897792128131ff97","_id":"pvtsutils@1.0.14","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-X9SBWQ9ceNAEEgLweoE7m7P6LDnZ3pZADBq7utQQV4pQ1vj7uQIAXaAQRCz/4nKLKQRT9ZrHOuxailKqBiztrg==","shasum":"002a07d5a47b00aa9191889e450493390ebffefc","tarball":"http://registry-npm.ywwl.com/pvtsutils/download/pvtsutils-1.0.14.tgz","fileCount":9,"unpackedSize":24997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc2WoCRA9TVsSAnZWagAA5aQQAII3WDSSljTryCQ9lr+M\noQYGyr5kfKiN8UPs/uvtc7o/9i7CzcpgTxPL9cX/2DHm2oU3VclPoX6/fgyG\nm2vVCv6Vrm4EvoQY853F3hCRWJpOQmsmTBfcRdqlNz5V+RU5rfLpwbjvXClL\no0AKKC5E0UQwKsn4tUUl8P79fs/idGP/r0s9CfSsx1bfOFVO6LyVM1e4zMi5\n8hGGfE4Odjb8IEBC6mdDtfeHlpH17BZ992CXnxP8LbMTu2JihQL9+ugLxfIe\nhHvwrUZZntVcDCgw9pim8t+O0q4VKd5sjttt+/c82cUlYgZ/53wgiLtO1Qgv\ntNTBbbDapgy6YRJ1KHnGI0sQMSeQexJe0pAYh8y9RxPSdzzyso/0veh6moIj\njAhUjhwj8BBu0rYXX85AbvedX3LIAGpP/Gwcoi157iPGHSVVsnw10gVEh39X\nrXX+4AuD6RmthzJn9bhjjH+kkMkKBGNwPEG8eF5qzvx//2OccENQNlodNZUb\nH3Lmz71TebOjGTdBVjY8f+s5WH2F+i4Nwtrt7hJF6NedlZoN7pr50CBukJDz\nDjlCupmhvzIbO4HPobOlpmadBgKNQSpHSeNBIPKqsfRy29nwjKObFca1KGuP\nelvm2KCr9OcWZ6EryHSnQCoEHP8FTUFTNdHh2QyxK7C/qzuc3Og5N5LFoBi2\nuDV/\r\n=pt1S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb+axelany6FLXz6okI+zpSKUV9S77KhqWYYaRG18qMAIgFJpLonVq9zTfI+jRy9yGEOMmEF6dd7OkOFisAChlUc0="}],"size":5824,"noattachment":false,"key":"/pvtsutils/-/pvtsutils-1.0.14.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.14_1601398183657_0.6193760103551316"},"_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":1601398183791,"_cnpm_publish_time":1601398183791,"dist-tags":{"latest":"1.3.6"}}