{"_id":"@abetomo/mask-value","_rev":"4-afafe05459064fd2dfc014932f87c799","name":"@abetomo/mask-value","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@abetomo/mask-value","version":"1.0.0","description":"Mask the value of the object.","main":"./dist/mask.js","types":"./types/mask.d.ts","scripts":{"build":"tsc","lint":"standardx **/*.ts","prepublish":"npm run build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/abetomo/node-mask-value.git"},"keywords":["mask","object"],"author":{"name":"abetomo"},"license":"MIT","bugs":{"url":"https://github.com/abetomo/node-mask-value/issues"},"homepage":"https://github.com/abetomo/node-mask-value#readme","devDependencies":{"@types/jest":"^26.0.3","@typescript-eslint/eslint-plugin":"^3.5.0","@typescript-eslint/parser":"^3.5.0","eslint-plugin-jest":"^23.17.1","jest":"^26.1.0","standardx":"^5.0.0","ts-jest":"^26.1.1","typescript":"^3.9.5"},"jest":{"collectCoverage":true,"moduleFileExtensions":["ts","tsx","js"],"transform":{"^.+\\.(ts|tsx)$":"ts-jest"},"testMatch":["**/tests/*.test.(ts|tsx|js)"]},"eslintConfig":{"env":{"jest/globals":true},"plugins":["jest"],"rules":{"no-unused-vars":"off","@typescript-eslint/no-unused-vars":"error"}},"standardx":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint/eslint-plugin"]},"publishConfig":{"access":"public"},"gitHead":"46aa45490f0ee8c49c443d7507a11e4086addde9","_id":"@abetomo/mask-value@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-AfSogUDnM14qQj0AoWqVMC9mwhzleGq44JQ7r5LNXnLpZDuv1Xe5zBKewb13/PNxeAFHAO/chKFMgEHBTOq+dA==","shasum":"6da35c50a6ce28738cb2e3603919c04d57fbb294","tarball":"https://registry.npmjs.org/@abetomo/mask-value/-/mask-value-1.0.0.tgz","fileCount":5,"unpackedSize":5489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/TO4CRA9TVsSAnZWagAA69QQAIZkBGWUDFGQwZzIZbtq\nq2WOcawJCimsQIx+bX4oXcqcJMQrN4aHvFfj/vEqywvDHw9ty23FlGr4n60t\nEkWewai8sjAwUDs1D0KdalnyYUlJbvBih+AZYDBb31VdsTJBx1dPrskTw37t\n/II7pyAM6jNpHsZgJ8hjG0A46hYLgKsHhduTRIfMDURWtXdM/5wooPsTdhq+\nZmMDXUEEa7BMs2MKBQxr0PChnZH04Xk6iLfI64wmimcwFYmnssV0I2vAICSl\nsEGTiL7Sj1nVqzkcmN4wjpxXpzK2DR2NP37IwlJqjsllsH9BG8NSkymo8edH\n0z9hqfD/62Okm+CFzOrcyrBlmSD/nZ/LLGmroHlEb8twfaKjAoJ8ySGsBmlr\nqvzi1jifdIfpype5Wtqgeh8K0iT4r2z5WYchVdg0+e0LMQO3sYPTkPBFb0ph\nq1Q+lC2uBz8mf3Ty/dzWs1gMDr77G1ExlDBdjVXM113+FFljl+hHWnoYtlSS\nlaetPU3QWji/RHDTkTIt58M67XfpkHmXK192Npcylwnyz5YxdBaqvjQzL4nu\nzi/BA/HrsPRaZaL1gBxLHS9Hj229WQ6kxUTIF+vLhamXLLmkaitm6Ofhf35e\nvY08LoYQCW+xVmp2/Btlq8FqbqqEJrWeZM4MAxixCw/IIslKIFaExvQgbg82\nWrL+\r\n=v7vm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOHDBtV9BPeUKeY5MCCXXd8vap9+HYWy2girc/sfeMrwIhAMQJLkN7ITAQprEW7BLy/gqBdBr1Kc3t7BPCi1iVGjfi"}]},"maintainers":[{"name":"abetomo","email":"abe@enzou.tokyo"}],"_npmUser":{"name":"abetomo","email":"abe@enzou.tokyo"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mask-value_1.0.0_1593652152486_0.13006503470436903"},"_hasShrinkwrap":false},"1.0.1":{"name":"@abetomo/mask-value","version":"1.0.1","description":"Mask the value of the object.","main":"./dist/mask.js","types":"./types/mask.d.ts","scripts":{"build":"tsc","lint":"standardx **/*.ts","prepublishOnly":"npm run build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/abetomo/node-mask-value.git"},"keywords":["mask","object"],"author":{"name":"abetomo"},"license":"MIT","bugs":{"url":"https://github.com/abetomo/node-mask-value/issues"},"homepage":"https://github.com/abetomo/node-mask-value#readme","devDependencies":{"@types/jest":"^26.0.3","@typescript-eslint/eslint-plugin":"^3.5.0","@typescript-eslint/parser":"^3.5.0","eslint-plugin-jest":"^23.17.1","jest":"^26.1.0","standardx":"^5.0.0","ts-jest":"^26.1.1","typescript":"^3.9.5"},"jest":{"collectCoverage":true,"moduleFileExtensions":["ts","tsx","js"],"transform":{"^.+\\.(ts|tsx)$":"ts-jest"},"testMatch":["**/tests/*.test.(ts|tsx|js)"]},"eslintConfig":{"env":{"jest/globals":true},"plugins":["jest"],"rules":{"no-unused-vars":"off","@typescript-eslint/no-unused-vars":"error"}},"standardx":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint/eslint-plugin"]},"publishConfig":{"access":"public"},"gitHead":"aa90ec56d0578830c3d33e2d8e93226fb633d881","_id":"@abetomo/mask-value@1.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-V/ZNHGjPqE8aL3UGL5E2gUtvql274rEFUHaBudimv+d4zhX9YxUFrXwwglkAEOCnOVx1d21ZrxUwRrJO4fFeDw==","shasum":"6a362fee158ccf12e972b8eedb20e051951766c8","tarball":"https://registry.npmjs.org/@abetomo/mask-value/-/mask-value-1.0.1.tgz","fileCount":5,"unpackedSize":5775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfClNYCRA9TVsSAnZWagAAWgIQAI8o4EkwpYE1UIQWNO16\nDKo7qD/334Z78NSxubFheLOKUu7vPbm02gv4dJ/EThm5NEbkZHWd7P1PcfAW\nrArEb+xZ7uVMu8q0Ax28a5/tMyT8ucwMKElbYHP7R5m9CRZpBVgzMBYWKdsk\nqbfZxliKUSWA1BAS85/1oYHUZ2WON6UonfUJ7qozlQXPq32iLP4RHZyTMAe+\n1cjxaGDkRVZxzixxAgdamV9pFLEg5Q48KdRlpjidWHj+L8GUCiVVQfu0lTRM\n9tI9Oj1LSGNKGfcRZWk63tvtst+4aKjEHU19Cvv2kStaXxlSLci6QqZYX5Kh\nNqT04ianGKb1WHQEPeQMyjpkZaUXZ6goghQRAKyeKpbglV+fy5KYcdf6Z3M+\nfnKqBJ5fUp0BAjbjUJ91dlw2jqd+7/1tvJQZHMWYzUEEii8fd/b5jyu6frG5\nDSyeHoS4SByPvc8DxqPLFtDoRYGSotENGgRcO2Wcy0desh+TJcdXCvploPYd\n0dTT+5pyzP4Qz8Knds9T/5GZtPodiaTW1k9PdXE0wsEvhCN3CX7zRz4Yrapc\nhgAOGKRO6Fo9wzAArXNlZQA8FAqG8/vAMDrRyTthVTNxJnJs8S4ZxgFdq6AX\nOe4uiMy0btu/ffWnKH1IKd9iob0z+vm+PVXM8HR1uLPRPUCsYJzSUC4uRjsG\n1Z7i\r\n=ojxi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9wULY+XPn9nQyEiJ1D6lMrXVb4gO/Fkk1poHKRLgTpQIgB91zFQa0FNfz4Jh0akG+nzu/wMMkVDn+40A9O3ZW+ZA="}]},"maintainers":[{"name":"abetomo","email":"abe@enzou.tokyo"}],"_npmUser":{"name":"abetomo","email":"abe@enzou.tokyo"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mask-value_1.0.1_1594512215549_0.22769749056093258"},"_hasShrinkwrap":false},"1.1.0":{"name":"@abetomo/mask-value","version":"1.1.0","description":"Mask the value of the object.","main":"./dist/mask.js","types":"./types/mask.d.ts","scripts":{"build":"tsc","lint":"standardx **/*.ts","prepublishOnly":"npm run build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/abetomo/node-mask-value.git"},"keywords":["mask","object"],"author":{"name":"abetomo"},"license":"MIT","bugs":{"url":"https://github.com/abetomo/node-mask-value/issues"},"homepage":"https://github.com/abetomo/node-mask-value#readme","devDependencies":{"@types/jest":"^27.0.2","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","eslint-plugin-jest":"^24.1.3","jest":"^27.2.2","standardx":"^7.0.0","ts-jest":"^27.0.5","typescript":"^4.1.3"},"jest":{"collectCoverage":true,"moduleFileExtensions":["ts","tsx","js"],"transform":{"^.+\\.(ts|tsx)$":"ts-jest"},"testMatch":["**/tests/*.test.(ts|tsx|js)"]},"eslintConfig":{"env":{"jest/globals":true},"plugins":["jest"],"rules":{"no-unused-vars":"off","@typescript-eslint/no-unused-vars":"error"}},"standardx":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint/eslint-plugin"]},"publishConfig":{"access":"public"},"gitHead":"26aa44f056e9e5729e3c1a4015099d0c096ee681","_id":"@abetomo/mask-value@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-SwE7I+nc7GRtQzwn44km3w6suaBr69TVdDO7a3mgGQGlYujvuU5LqOmy+StT8DIEfCq6Cfrqcl0dFFl4F9WQZA==","shasum":"7953909818433ffe49a2bf1f27ddb5ee77b84901","tarball":"https://registry.npmjs.org/@abetomo/mask-value/-/mask-value-1.1.0.tgz","fileCount":5,"unpackedSize":6110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmZMKCRA9TVsSAnZWagAAIY8P/3DuNls/sL6NY83Dshil\nyRkM60kPA8/xWP1snpT9rB+kw2GnTe3PjkCzmlzaq4zbs+hKGJe+1id5uq+F\nGrSY2OuM+nyU7/b8lnBHfatzn7ins9qDomZrJ2pSGo1xSH/XI9IWyPsh0CHr\n2lj13UBGiNVnMX0mU05qxovnM1Y+UPPP8xOVPOVhW9D8xY97plOC0gCeWqra\nO2JYinia+9mJkXPNdVhjm1gKLMAOZHgRs77jtCk7j9eonl0BPmy+E2A/7iZ2\nxb0AMWs7ml9uNhtHTEhb++Y/FE8JTFmKlSCmXxU/K+QM0dg7uJek73rF7n+W\nmV7zwovpH9WDt8SoxpvGbMQoga7Nw1vSc07Q2zlEDbrhp2pe3ksCFs3iilFK\nUoe5u4CkwlodUrQLy+ij+pObQoJbSY8Gf5h5+hWp8rJclFmbZUeKfpSnRBRA\nrGwqtjrSgmMOyGpsXrblDZZvcTysis5OsyftQDYTCQ5uit13mIEdCayep0De\nDKndYqyGj3QPDSoOXPTEtiuwqsksfzEhmIX7qw5lo1jtTxDKnJa9wvQHUWi8\ntNKCdHRcT4EBN7xAGoYbghmqTllfEGwpKqFYKsXchDzxv15hO8LvbEljEsak\nYC3DAPuASNzuldaZrhjadGMpzYSH0IQgtJ/ZpbP81/KZa/UhAkrSkOm5WaW8\nuZxY\r\n=dgyw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzNjtnrJYs1meNLHmHti35e+vuIFJYdIYvfTMie7T/YAiA73VZcq67G0MWBIPiJaynIr6NNyZ0x/hryfpO+p0bTjQ=="}]},"_npmUser":{"name":"abetomo","email":"abe@enzou.tokyo"},"directories":{},"maintainers":[{"name":"abetomo","email":"abe@enzou.tokyo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mask-value_1.1.0_1637454602502_0.26149085923286375"},"_hasShrinkwrap":false},"1.2.0":{"name":"@abetomo/mask-value","version":"1.2.0","description":"Mask the value of the object.","main":"./dist/mask.js","types":"./types/mask.d.ts","scripts":{"benchmark":"npx ts-node tests/mask.benchmark.ts","build":"tsc","lint":"standardx **/*.ts","prepublishOnly":"npm run build","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/abetomo/node-mask-value.git"},"keywords":["mask","object"],"author":{"name":"abetomo"},"license":"MIT","bugs":{"url":"https://github.com/abetomo/node-mask-value/issues"},"homepage":"https://github.com/abetomo/node-mask-value#readme","devDependencies":{"@types/jest":"^27.0.2","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","eslint-plugin-jest":"^24.1.3","jest":"^27.2.2","standardx":"^7.0.0","ts-jest":"^27.0.5","typescript":"^4.1.3"},"jest":{"collectCoverage":true,"moduleFileExtensions":["ts","tsx","js"],"transform":{"^.+\\.(ts|tsx)$":"ts-jest"},"testMatch":["**/tests/*.test.(ts|tsx|js)"]},"eslintConfig":{"env":{"jest/globals":true},"plugins":["jest"],"rules":{"no-unused-vars":"off","@typescript-eslint/no-unused-vars":"error"}},"standardx":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint/eslint-plugin"]},"publishConfig":{"access":"public"},"gitHead":"baace2b98e0c1964ac2758965b2d6cc802194229","_id":"@abetomo/mask-value@1.2.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-VUGoIQVdmi6NBNQqarU0nK1Jc5F3n/oXVh6RIEBc6bc0KAOJ/TTdi6uJ/yGujEHPUOc6c1wNShVU0ktDZik9BQ==","shasum":"4bdbb78fd2f93a36559ff6d38e55a7810d832e45","tarball":"https://registry.npmjs.org/@abetomo/mask-value/-/mask-value-1.2.0.tgz","fileCount":5,"unpackedSize":5707,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpGsZCRA9TVsSAnZWagAAPzQP/1sTIgWPJ9sF4ABoTvOH\nHY4yXlVGCAyoR7irF/bp4yMSVtSxx3t4CNwlSKemNWacgORbg0YTy7d4Nf6n\nYBjdJzp5nzDUmdcOr1wJ7pprsyLVDCVy4q6CBTfRooW/fqSLMdSNAhx6J2S3\nTgQxNGOHRQi4eLyOBevUemxaHJOYGg7yOEjOdwell45xcgQwI1/FZhYopgIn\nu6Tp8XKHkDlzBNKjLj7MOgEhKueUyGBM10Mj6AG0W5Y9P1W5cuiRIvTWd9Ly\nbwbPbnCeGaYSxvQWszC6pd0MeXDuiECSgEJVTdtC3m0Vwnbochqw+95dgDpf\nJx4/kTxNQawkbtNFI/VoMjMPqkdX9y01J1MQqrBRzTBbczpi8K5eHuWl1fhm\nnfT815xyVBHiwIlLKbmwjAnXjIb+itPGxB9lkO4jf6pUOGxJvn3btgnXRYq/\niQfHwDbn5JBTQPNbFX5L76wXwlXSK4mNqWArM6xuYpNOmkwT0a3hv2+Rljr0\nckJcN0hdfiWKdNzmkmZ2UOrLxTTCDJEcaMnNEgygV+f4V8F3QTbIbF6MdhbO\ngVsmZgaWxWyPx0u915sr1EFMRuhB3lp9houIikfvHizcPJDAW790hiU53u1R\nMdAXp7CtkRBddyu8i33nOUSPs3FIVypzHekgLXlICHQ9WUX14GkQ7LgJI65u\nRlxA\r\n=FGiJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtQINYttDGsZqBCvG4zQ7QoNrsmAd5AIEWxx7C0ClAUAiEA1oK0buT6ltzDXXxwUiA6TcleGULFpLXuwASKJ3xCTpQ="}]},"_npmUser":{"name":"abetomo","email":"abe@enzou.tokyo"},"directories":{},"maintainers":[{"name":"abetomo","email":"abe@enzou.tokyo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mask-value_1.2.0_1638165273206_0.35114008921916784"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-02T01:09:12.448Z","1.0.0":"2020-07-02T01:09:12.595Z","modified":"2022-04-04T10:59:01.682Z","1.0.1":"2020-07-12T00:03:35.636Z","1.1.0":"2021-11-21T00:30:02.763Z","1.2.0":"2021-11-29T05:54:33.355Z"},"maintainers":[{"name":"abetomo","email":"abe@enzou.tokyo"}],"description":"Mask the value of the object.","homepage":"https://github.com/abetomo/node-mask-value#readme","keywords":["mask","object"],"repository":{"type":"git","url":"git+https://github.com/abetomo/node-mask-value.git"},"author":{"name":"abetomo"},"bugs":{"url":"https://github.com/abetomo/node-mask-value/issues"},"license":"MIT","readme":"# node-mask-value\n\n[![npm version](https://badge.fury.io/js/%40abetomo%2Fmask-value.svg)](https://badge.fury.io/js/%40abetomo%2Fmask-value)\n![Test](https://github.com/abetomo/node-mask-value/workflows/Test/badge.svg)\n\nMask the value of the object.\n\n## Install\n\n```\n% npm i @abetomo/mask-value\n```\n\n## Examples\n\n```typescript\nimport { mask, masks, Config } from '@abetomo/mask-value'\n\ntype User = {\n  name: string\n  address: string\n}\n\nconst data: User[] = [\n  {\n    name: 'name1',\n    address: 'address1'\n  },\n  {\n    name: 'name2',\n    address: 'address2'\n  }\n]\n\nconst config: Config = {\n  path: '.[].name',\n  action: () => Math.random()\n}\n\nconsole.log(mask<User[]>(data, config))\n/*\nOutput:\n[\n  { name: 0.913236932864554, address: 'address1' },\n  { name: 0.6970620876451457, address: 'address2' }\n]\n*/\n\n\nconst configs: Config[] = [\n  {\n    path: '.[].name',\n    action: () => Math.random()\n  },\n  {\n    path: '.[].address',\n    action: (s: string) => s.length * Math.random()\n  }\n]\n\nconsole.log(masks<User[]>(data, configs))\n/*\nOutput:\n[\n  { name: 0.4253394097546368, address: 4.285149904757429 },\n  { name: 0.7394228798993354, address: 6.334446902953465 }\n]\n*/\n```\n","readmeFilename":"README.md"}