{"_id":"@bvasseur/guess_json_mapping_code","_rev":"1-11a12f0b9bf61e62a03b0c24a3fe8ebd","name":"@bvasseur/guess_json_mapping_code","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bvasseur/guess_json_mapping_code","version":"0.0.1","description":"library to produce (groovy) code that map two JSON (source -> target).","main":"index.js","scripts":{"test":"jest","lint":"eslint *.js","format":"prettier --write *.js"},"repository":{"type":"git","url":"git+https://github.com/Benoit-Vasseur/guess_json_mapping_code.git"},"author":{"name":"Benoit Vasseur"},"license":"MIT","bugs":{"url":"https://github.com/Benoit-Vasseur/guess_json_mapping_code/issues"},"homepage":"https://github.com/Benoit-Vasseur/guess_json_mapping_code#readme","devDependencies":{"eslint":"^5.12.1","eslint-config-prettier":"^4.0.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.15.0","eslint-plugin-node":"^8.0.1","eslint-plugin-prettier":"^3.0.1","eslint-plugin-promise":"^4.0.1","eslint-plugin-standard":"^4.0.0","jest":"^24.0.0","prettier":"1.16.1"},"gitHead":"9e907505e9ad7e95bfdd27d1b09025359fec9b3e","_id":"@bvasseur/guess_json_mapping_code@0.0.1","_nodeVersion":"8.11.4","_npmVersion":"6.7.0","dist":{"integrity":"sha512-fcxy/wTdVigC33Dmm5nKmC8xdC5DZDkvslePDwomqJ43t/sOkqs71diLnnp5y5JC39FvGdnvDJidSnCnkIplQQ==","shasum":"2517f35df370ef2390a3e9a4db567143040d31bf","tarball":"https://registry.npmjs.org/@bvasseur/guess_json_mapping_code/-/guess_json_mapping_code-0.0.1.tgz","fileCount":4,"unpackedSize":4988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTi5TCRA9TVsSAnZWagAAI20P/RY0/FtiYnT6EjnV/EZI\nqBdEikpPjpwS1dT5qSmOUXAkJYj5kSXxcjy/fq7mWsSQKjinGm7Jc2u2DtBs\nyiohrKI+DZ/rjqaHrk+1yg685XoHWJ/k4M8rYmOzQ29jzpF13iZIoU+fH1pG\ntrIGeh+1DicWXEi6Tkyzbix4+Kszbd+JOX3JoO+HEzeCnI81m8QXnJjyxHzY\nDybwca8QVy7D58gu/CKJLXMdnAzHR6DNCIl5/5Ccy/GTT1VRAEP0fHZmd7KE\nraGKu1qNqzVxJNSxK91pNn7K8IPEraCDkHX4U4LQjLr7dM5psr/cQRfAnr4r\ng9TXfdNNbqC+wBhC5Kt4a+EUw2hfeYnWDgl3zArYFoDCYKVqudoYN2ZiaeZ9\nAzSlRhSv2IKqNLgEyvQ4TS5RZ7O2VZWXj6IHQikzUegeAMOtyqUbBaoTtmyb\nkUH91CqATnuRUBVT9v2mTbwdB+EFRZBkl7xSVRsD5WJUWgrgVQZaBj1eNFjD\nBRawdc5DXtzMiJFlG2OcEUkBlc/Vvr/E4ijB2kePs8V0ZJt6lOyxy7bVSxaA\ngVJrlhwqQiqjzTAWHOCNGQMkaVHfnIj8XkdVBEsacjuQDgFnRCKLGp14WrCj\nAuMlTQo495/agxMSre2JhcVdGB0CxANbXwovklQewTFu38urgZKCoRA2izP7\nn6cG\r\n=EDkX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaK03eqPJaOOHMz56K3roOL9qVj/8ErW5tVT8CDxgGyAiEAmOmhc5IASCZ2QXFEdqRoRLGZIumTDiiHvTqOsQMN8DI="}]},"maintainers":[{"name":"bvasseur","email":"benoit.vasseur14@gmail.com"}],"_npmUser":{"name":"bvasseur","email":"benoit.vasseur14@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/guess_json_mapping_code_0.0.1_1548627538917_0.624942143553797"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-27T22:18:58.746Z","0.0.1":"2019-01-27T22:18:59.029Z","modified":"2022-04-04T21:16:46.912Z"},"maintainers":[{"name":"bvasseur","email":"benoit.vasseur14@gmail.com"}],"description":"library to produce (groovy) code that map two JSON (source -> target).","homepage":"https://github.com/Benoit-Vasseur/guess_json_mapping_code#readme","repository":{"type":"git","url":"git+https://github.com/Benoit-Vasseur/guess_json_mapping_code.git"},"author":{"name":"Benoit Vasseur"},"bugs":{"url":"https://github.com/Benoit-Vasseur/guess_json_mapping_code/issues"},"license":"MIT","readme":"# GUESS JSON MAPPING CODE\n\n## GOAL\n\nThe goal of this library is to produce (groovy) code to map two JSON (source -> target).\nThe strating points are the source and the target JSON and want to get the code to transform the source to the target.\n\n## ROADMAP\n\nThe items order in sublists are not meaningful.\n\n- [x] simple json mapping : no array, strict equal (no substring), ...\n- [x] add tests\n    - [x] guessMapingRules()\n    - [] findPath()\n    - [] generateMappingCode()\n- [x] add CD/CI\n- [x] add linter and prettier\n- [] be sure to have a nice workflow and good tools for publishing, testing and documentation\n- [] add UI\n    - [] simple version : no linter for json, no code formatting, etc\n    - [] add beautiffier for json inputs\n    - [] add code formatting for generated code\n    - [] visual mode of the mapping (arrows to represent the mapping, etc)\n- add documentation and test cases to support the roadmap\n- [] improve algorithm, to handle\n    - [] arrays\n    - [] substring\n    - [] concat\n    - [] multiple matches\n    - [] date format conversion\n- [] open for extension to support other languages\n\n## workflow and contribution\n\n### Tools\n\nTools used to have style consistency (and try to check some best practises) :\n- prettier : `npm run format`\n- eslint : `npm run lint`\n\n### Spirit\n\n- No specific workflow should be forced during coding on local (no git hooks, etc).\n- Travis will complain if : tests or linting rules are failing\n- If a branch/PR is red, it is not merged into master\n- feature branch\n\nI do not want to borrow the potential contributor during his dev process. So I do not want to force other to use prettier and eslint during local coding. Travis will complain if the rules are broken, and I think it is enough.\nSo if the dev want to use prettier and eslint during his coding process, the tools are here (npm scripts and config files).\nSo it is just only before the PR that prettier and eslint have to be green (if you want a merge).\n","readmeFilename":"README.md"}