{"_id":"tsv-json","_rev":"2-7fa22278be5cee8ec313b86cea25f4be","name":"tsv-json","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"tsv-json","version":"1.0.0","description":"Convert between TSV and JSON (`string[][]`)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/papb/tsv-json.git"},"author":{"name":"Pedro Augusto de Paula Barbosa","email":"papb1996@gmail.com"},"engines":{"node":">=10"},"scripts":{"build":"del-cli dist && tsc","release":"npm run build && np --no-2fa && npm pack && echo Please put the generated .tgz as a release asset on GitHub","test":"npm run build && xo && ava","lint":"npm run build && xo","ava":"npm run build && ava"},"main":"dist/source","types":"dist/source","devDependencies":{"@ava/typescript":"^1","@types/node":"^13","ava":"^3","del-cli":"^3","np":"https://github.com/pixelastic/np/tarball/c3ab2e3b053c7da0ce40a572ca1616273ac080f8","source-map-support":"*","typescript":"~3.9","xo":"*"},"ava":{"verbose":true,"require":["source-map-support/register"],"typescript":{"rewritePaths":{"source/":"dist/source/","test/":"dist/test/"}}},"xo":{"ignore":["**/*.js"],"rules":{"@typescript-eslint/prefer-readonly-parameter-types":"off","unicorn/prevent-abbreviations":"off","unicorn/no-for-loop":"off","ava/no-ignored-test-files":"off","linebreak-style":["error","unix"],"object-curly-spacing":["error","always"]}},"gitHead":"d01f6a77716e717ae3c875b8df9351d57106ce84","bugs":{"url":"https://github.com/papb/tsv-json/issues"},"homepage":"https://github.com/papb/tsv-json#readme","_id":"tsv-json@1.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-PevB4ea0TkHfAgKAHVPeO3ANSqby8E6ydmbcHBURZiG8gVzs1/lKYe48uM9Dy23f3wG2Gq40/1BkGBmKOysB+w==","shasum":"95d0b7695ae0b84775564f23e12c57255969a3ae","tarball":"https://registry.npmjs.org/tsv-json/-/tsv-json-1.0.0.tgz","fileCount":12,"unpackedSize":10289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5n25CRA9TVsSAnZWagAAbcoP/38ApNJIU+PdTkhQgYmL\nwKq7bOpiYK6NTxDUGOYQ9s432Egb6BiJ+3U7VYq+F2Wu7MseZWC7zhi5F7YT\nU4T1//5oWEQmLOSxVkHbDmv006DRxDUMEDTIv587VilteqHi0QvcxhX/WMx7\nSc1zCn+6pTySZ0fFViawLUmV1DNR+oRBl4wJex8ohDXS+Cw3SVVG3y87SnZ5\njMS8qSWllLqjOUIWLHFE3RSnuK9wRlCcwvCA0UTCF2dDPH4o9D5fKjSoddgq\n+Ied9LZzrE6A3Y9v7qHIUs3psIY7kdRfXBr2zC3yO3wUdKjPMceiZlFGNw7O\nxao97F2AEkxJPihXEj7NgVLAu00Vimo+lN5U1EBjlwo0aUW4tzeur+rhi8AV\n61bLxO8ae3iemXu+KvEvU5dGw1m1ecYIAsrZ6XZUB9XJD5F8QCgr9rbmSy4b\nxgDVI77XVCT8CbAnHcIqpxNwdwrVeSzL/IduOyxwHQMRUq+ZIwiAbayySsnh\nKXPguvn+VzuG3/zxFGX90G8JB//5v+Ca1Se9y6BZB6TW+lmqFUyqSF/ZijT0\nK2O33zoZ/YcZybrYIqRXOcvEoaR0ww02bgvGlJxMBiAC54wHFgu0SN4bHve2\nhwA/tkM9hDaI/kuQJ24CqWtX8LqNvgWqhqK7I/96luANqFAsFLaPANHU/O9x\noOKx\r\n=wmCn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH68w4xIJzXWfmiyWhWNvzxKGbZlQYLXeGsgcbtSn/eAAiBkxptspKAmKNUwQnw5K/MQCIUqDSk+RFmo4wc9a0W+gA=="}]},"maintainers":[{"name":"papb","email":"papb1996@gmail.com"}],"_npmUser":{"name":"papb","email":"papb1996@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tsv-json_1.0.0_1592163769203_0.6611335930941817"},"_hasShrinkwrap":false},"2.0.0":{"name":"tsv-json","version":"2.0.0","description":"Convert between TSV and JSON (`string[][]`)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/papb/tsv-json.git"},"author":{"name":"Pedro Augusto de Paula Barbosa","email":"papb1996@gmail.com"},"engines":{"node":">=10"},"keywords":["tsv","json","string","table","matrix","convert","excel","typescript"],"scripts":{"build":"del-cli dist && tsc","prepack":"npm run build","release":"npm run build && np --no-yarn --no-2fa --no-cleanup","test":"npm run build && xo && ava","lint":"tsc --noEmit && xo","ava":"npm run build && ava"},"main":"dist/source","types":"dist/source","devDependencies":{"@ava/typescript":"^1.1.1","@types/node":"^10.17.40","ava":"^3.13.0","del-cli":"^3.0.1","np":"^6.5.0","source-map-support":"^0.5.19","typescript":"~4.0.3","xo":"^0.34.1"},"ava":{"verbose":true,"require":["source-map-support/register"],"typescript":{"rewritePaths":{"source/":"dist/source/","test/":"dist/test/"}}},"xo":{"rules":{"no-lonely-if":"off","curly":"off","linebreak-style":["error","unix"],"object-curly-spacing":["error","always"]},"overrides":[{"files":"**/*.ts","rules":{"@typescript-eslint/no-explicit-any":"error"}}]},"gitHead":"1d8477dd13f022208446e0d9d7e6aa96dfe1bcdb","bugs":{"url":"https://github.com/papb/tsv-json/issues"},"homepage":"https://github.com/papb/tsv-json#readme","_id":"tsv-json@2.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.14.7","dist":{"integrity":"sha512-muMGcyearPghEu+ET4HyDo1aOkCTldTc6PujztHhRqsCkHAWuRDynTf1t20NJz5iI961m2CDNVeo9vhU/Vblfg==","shasum":"3000f3cd30115d2dc31d4ac7568f8eb703919733","tarball":"https://registry.npmjs.org/tsv-json/-/tsv-json-2.0.0.tgz","fileCount":9,"unpackedSize":8604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkQEFCRA9TVsSAnZWagAAzmUQAJnGEhD5zVf5pjrLKBkJ\nuyjd9gq43Cj5eq/Xm+ULNz3S4z3i9CX61kwlcVYdQSTCu8nLQVvLqY9num1w\n8K7HtCigo13pK0l0yAE51H92my7BVZHBKiAZKl9DsSjAdiTyFY8yEg2syMIr\nxqIXauihoASHRW5dKl9cU9pQ+6SeZOAMTNJkzKI+Oz1v4oyv0Nv8+SnGssD0\nUEh3CoJE5KOwC4azUb+wasH3qZtRj3fgzUHiZTNKI1synZJ4ALYVbQMfiLWP\nnH5xPuCYncXm6L0jR0Lwyy5ffgnKAkeds+pwpU3r+B2eXBdQIl0LMWD5tfCv\nmHylu1f1mn0fYnLnjIsRa7BydFsMcLf2ksRcSCPRlYj25BwmBvRw5J0ZJmzo\n4UddYpKuNurQFeZPlKTKINasnwAQDEjjNcbVfE1R6wTfoFltpnoKH8xS33fw\n+aPO2thhGcp9rW3OEQBmHErmTNiZTgngW4j3Ufhqwz0yv+lyOwaj0rptb0QZ\ntM+zGzBuy9NwGIZQZ0TUh0qEBLvxjbI01fgTAc9pEz37NnGN2D6yL3k/xhsT\n4wYFLTMvPcidavQoSp9ch9/ZEMFcpu+Z+3l4Zq+JgWgKIUu6Q4URZJyMVWZz\nOHlhYYjX1Yr+rA+RFbAXTPwi0L6V34SOCmtGcA0PWlY1O5FsMLHnNwp2cWrN\nDFF0\r\n=JRYF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJnSXb2zOuJHFF9xudb6czvNZD1oojp+wp+NzhLElGPAiBCJoNx4WJvIR3bMFezr8QP54dXTu8kU2h5jjORq9sRxA=="}]},"maintainers":[{"name":"papb","email":"papb1996@gmail.com"}],"_npmUser":{"name":"papb","email":"papb1996@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tsv-json_2.0.0_1603338501137_0.0319717464266156"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-14T19:42:49.203Z","1.0.0":"2020-06-14T19:42:49.328Z","modified":"2022-05-22T09:10:22.734Z","2.0.0":"2020-10-22T03:48:21.270Z"},"maintainers":[{"name":"papb","email":"papb1996@gmail.com"}],"description":"Convert between TSV and JSON (`string[][]`)","homepage":"https://github.com/papb/tsv-json#readme","repository":{"type":"git","url":"git+https://github.com/papb/tsv-json.git"},"author":{"name":"Pedro Augusto de Paula Barbosa","email":"papb1996@gmail.com"},"bugs":{"url":"https://github.com/papb/tsv-json/issues"},"license":"MIT","readme":"# tsv-json ![Build Status](https://github.com/papb/tsv-json/workflows/CI/badge.svg) [![install size](https://packagephobia.com/badge?p=tsv-json)](https://packagephobia.com/result?p=tsv-json)\n\n> Convert between TSV and JSON (`string[][]`)\n\n\n## Highlights\n\n* Zero dependencies\n* Simple and to the point\n* Written in TypeScript\n* Handles double-quotes correctly\n\n\n## Install\n\n```\n$ npm install tsv-json\n```\n\n\n## Usage\n\n```js\nconst { tsv2json, json2tsv } = require('tsv-json');\n\nconsole.log(json2tsv([\n\t['foo', 'bar'],\n\t['baz', 'qux']\n]));\n//=> 'foo\\tbar\\nbaz\\tqux'\n\nconsole.log(tsv2json('foo\\tbar\\nbaz\\tqux'));\n//=> [['foo', 'bar'], ['baz', 'qux']]\n```\n\nHandles tabs, newlines and double-quotes correctly.\n\nAsserts the input is of the expected type (`string[][]` for `json2tsv`, `string` for `tsv2json`).\n\n\n## Tip for Excel\n\nIf you copy any TSV generated by this package and paste directly on an Excel cell, Excel will automatically parse the TSV and fit everything in the appropriate rows and columns, starting at the cell highlighted by you.\n\n\n## Related\n\n* [tsv-json-cli](https://github.com/papb/tsv-json-cli) - CLI for this module\n\n\n## License\n\nMIT © [Pedro Augusto de Paula Barbosa](https://github.com/papb)\n","readmeFilename":"readme.md","keywords":["tsv","json","string","table","matrix","convert","excel","typescript"]}