{"_id":"@berlin-vegan/berlin-vegan-data-js","_rev":"5-50edc967598e43f7c78cce8e2310fd70","name":"@berlin-vegan/berlin-vegan-data-js","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"@berlin-vegan/berlin-vegan-data-js","version":"0.1.0","keywords":["berlin-vegan","berlin-vegan-map","vegan","map"],"license":"AGPL-3.0-only","_id":"@berlin-vegan/berlin-vegan-data-js@0.1.0","maintainers":[{"name":"marco-eckstein","email":"marco.eckstein@gmx.de"}],"homepage":"https://github.com/berlin-vegan/berlin-vegan-data-js#readme.md","bugs":{"url":"https://github.com/berlin-vegan/berlin-vegan-data-js/issues"},"bin":{"berlin-vegan-data-js":"target/cli/berlin-vegan-data-js.js"},"dist":{"shasum":"df899c7d86a366829aab70e6d70797f89e8df34b","tarball":"https://registry.npmjs.org/@berlin-vegan/berlin-vegan-data-js/-/berlin-vegan-data-js-0.1.0.tgz","fileCount":5,"integrity":"sha512-d/YyuKfoSCngYwp9jy1F8XiOBmTUbqjwHeKvHwXk4FMMbDXqod6MNEwhU8XEk3XhH0Se96+J+HxP5HDHRrZeng==","signatures":[{"sig":"MEUCIQDUtvAazyzZARHCWbrbCRNSeNzA9FSI/t3ZKvQ67ahGlAIgZ0qRu4OQvlDTGTEICeyquYotYXvcG2AuQlkM4X719wM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenkrhCRA9TVsSAnZWagAAcacP/31IfU1IaDA1+nu9YL4g\ncv9/X4Y8qgu7/JLcSEMP3WraQ4ugf9l2J01Vv+RQo+DzSKciUcDftstXEi0e\nEWG/rYez1cqKDCTdNPSpyuw4uCee+hjK9E8gqDRbtVtEsUpglY2aosP91BhO\nytpD5ZARJ2pBWGZ6UqonONn9xUwfoRWnafFBRLjkEbyyxmfZOP91oB1M/Kc4\nXunb2yXr+mdgVNTH7Eh7y+7GAPxzjsrj3jWoOKQW1jh41yujc1XZSh+pK+JM\nZXIXgPxrCUwZMzyUMH1s3/ThtOVD+IVa/yDsJ6QjfKMJAw0lKwlF13Q1OzW+\nlc744to0QNIZt/zvHfg0W/IqN+ShZl1x+T2A9dZ6uQVp6R1v0vekKh+Z6WZO\nYnBRxEyfocyVzOuzX5AzWDkYayrHYMudb+uJHSptXh05PCGM2eM1bdn9z4xR\naXk69GVUu1yHtyWKHFOyClVp75m1Tuxgvfcc4edVC9JaMweCDiFphoYzG/zQ\nxHpvlEeuOWWBXWBNe6vgS7AiNgmROddXoZl4Ww1d4k9JKYREu6RXmLYf6EIO\nEh+k97ok7xzYNjWF5ejKkDPtwSEoNh85z73HJ6A6dkpWbbO8wj2dUFQh1TpM\n3fYb3HCkIIJP5UKHAvXH+BiINShyviRukCtfHAiBqpCi/IonezKQe++PK8ff\nMPWO\r\n=uChs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"target/index.js","types":"target/index.d.ts","gitHead":"62f97d3053bac3c0d989068430c1743b4434ac8c","scripts":{"test":"npm run _test","_lint":"tslint src/**/*.ts","_test":"jasmine target/src/main/**/*.js --helper=target/test/helper.js --stop-on-failure=","start":"npm test && concurrently \"npm run _compile:watch\" \"npm run _lint:watch\" \"npm run _test:watch\"","_clean":"rimraf target","prepack":"npm test","pretest":"npm run _clean && npm run _compile && npm run _lint","_compile":"tsc","_lint:watch":"chokidar src/**/*.ts --command \"npm run _lint\" --throttle 2000","_test:watch":"chokidar target/src/main/**/*.js --command \"npm run _test\" --throttle 2000","_compile:watch":"tsc --watch"},"_npmUser":{"name":"marco-eckstein","email":"marco.eckstein@gmx.de"},"repository":{"url":"git+https://github.com/berlin-vegan/berlin-vegan-data-js.git","type":"git"},"_npmVersion":"6.13.4","description":"A library and stand-alone program that specifies the native open-source JSON format used by Berlin-Vegan and allows to convert data in this format to be converted to OpenStreetMap/Overpass and Schema.org JSON formats.","directories":{},"_nodeVersion":"12.16.1","dependencies":{"axios":"^0.19.2","core-js":"^3.6.5","commander":"^4.1.1","source-map-support":"^0.5.16"},"_hasShrinkwrap":false,"_versionNumber":0.1,"devDependencies":{"rimraf":"^3.0.2","tslint":"^6.1.0","jasmine":"^3.5.0","typescript":"^3.8.3","@types/node":"^13.13.0","chokidar-cli":"^2.1.0","concurrently":"^5.1.0","@types/jasmine":"^3.5.10","@types/source-map-support":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/berlin-vegan-data-js_0.1.0_1587432160793_0.6267828601488568","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@berlin-vegan/berlin-vegan-data-js","version":"0.2.0","keywords":["berlin-vegan","berlin-vegan-map","vegan","map"],"license":"AGPL-3.0-only","_id":"@berlin-vegan/berlin-vegan-data-js@0.2.0","maintainers":[{"name":"marco-eckstein","email":"marco.eckstein@gmx.de"}],"homepage":"https://github.com/berlin-vegan/berlin-vegan-data-js#readme.md","bugs":{"url":"https://github.com/berlin-vegan/berlin-vegan-data-js/issues"},"bin":{"berlin-vegan-data-js":"target/src/cli/berlin-vegan-data-js.js"},"dist":{"shasum":"989df1c0831c0137a16a91d6e7ec2a22c991894f","tarball":"https://registry.npmjs.org/@berlin-vegan/berlin-vegan-data-js/-/berlin-vegan-data-js-0.2.0.tgz","fileCount":74,"integrity":"sha512-KnbwsTtUcbBAyCKik+2mR0CZsMhlon68Qil/7mOO0rjx8vvYm0h1NIF+xKVYY6AwCsoj997/y8+q498AnWdOpQ==","signatures":[{"sig":"MEQCIFrQueJw84+7L9ZZ5M8glM6bXRtbd9xogXdg1Z2hei0zAiB3H6JTSgRYrF7P584IAn2Wt2FN4TNN2K+nvrkM8xd2Pw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111389,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenlANCRA9TVsSAnZWagAA0+8P/3pGv+bii+zJz0hfrTcw\nd0cZJ5WV+w0SD3blYCQNKV6lHvzIPBoeONCM+H7oiXMap8jOTD5JOU1GQmnq\nGvWcJS+XcSXZVYIqH18dxnFyas5xvKTWQm5W1fhz4UMnXEDmkeo5wC78ummK\ngFyFMva1sttw8rIme1N2poE1GTpGObcavHr80McwktJEHaudeStm6rpIEay4\ndqMT/pTCu39UXEmrZuU7eItJQ3r6efKz20jN5Bp53QqMXiXXA4KeB4jzgOFU\nZNvu46ZvLYM1MG/BJcMxGVaYPmJbJkGpuN4js/bykmmMeP/uPmjY8iwqoe8m\nqosies14WEPL51ODUoHYvusuYESW8KPvLjpEiJHMPouvOPutDnFB9qU8lgYi\nM5fh4UROvptN5gGdGdHphO/lUS48ipjSag6TMLmxAipV6EAQgRHvWl5HgTPm\nUySp4oVZ4r+cOHH1YJ+3Vl57ifDQ0iPLRCw2mY7ibCtaqvVhZRVmvhd0ovXJ\notkNkbPcGr/4Fi8Vx7h4y+yeJJX+mGUTNDG2XgUfGKwthlI+KBNVQBx/lWED\nGwkPZc9lffajJSFn8mRDuJh7jOhZDyAxL+YtdMm5eogGkmhKWd57P59K35ME\nZGI3KL/3fKWbQGco2L3ptVfmDcsRPgDmw6cDHwMct5hMfAQFcUmRGdKzjiIu\nACyd\r\n=oGgf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"target/src/index.js","types":"target/src/index.d.ts","gitHead":"f12f66ee1b802d68b81e804a521e67c5dc1216fb","scripts":{"test":"npm run _test","_lint":"tslint src/**/*.ts","_test":"jasmine target/src/main/**/*.js --helper=target/src/test/helper.js --stop-on-failure=","start":"npm test && concurrently \"npm run _compile:watch\" \"npm run _lint:watch\" \"npm run _test:watch\"","_clean":"rimraf target","prepack":"npm test","pretest":"npm run _clean && npm run _compile && npm run _lint","_compile":"tsc","_lint:watch":"chokidar src/**/*.ts --command \"npm run _lint\" --throttle 2000","_test:watch":"chokidar target/src/main/**/*.js --command \"npm run _test\" --throttle 2000","_compile:watch":"tsc --watch"},"_npmUser":{"name":"marco-eckstein","email":"marco.eckstein@gmx.de"},"repository":{"url":"git+https://github.com/berlin-vegan/berlin-vegan-data-js.git","type":"git"},"_npmVersion":"6.13.4","description":"A library and stand-alone program that specifies the native open-source JSON format used by Berlin-Vegan and allows to convert data in this format to be converted to OpenStreetMap/Overpass and Schema.org JSON formats.","directories":{},"_nodeVersion":"12.16.1","dependencies":{"axios":"^0.19.2","core-js":"^3.6.5","commander":"^4.1.1","source-map-support":"^0.5.16"},"_hasShrinkwrap":false,"_versionNumber":0.2,"devDependencies":{"rimraf":"^3.0.2","tslint":"^6.1.0","jasmine":"^3.5.0","typescript":"^3.8.3","@types/node":"^13.13.0","chokidar-cli":"^2.1.0","concurrently":"^5.1.0","@types/jasmine":"^3.5.10","@types/source-map-support":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/berlin-vegan-data-js_0.2.0_1587433485349_0.976482361977026","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@berlin-vegan/berlin-vegan-data-js","version":"0.4.0","keywords":["berlin-vegan","berlin-vegan-map","vegan","map"],"license":"AGPL-3.0-only","_id":"@berlin-vegan/berlin-vegan-data-js@0.4.0","maintainers":[{"name":"marco-eckstein","email":"marco.eckstein@gmx.de"}],"homepage":"https://github.com/berlin-vegan/berlin-vegan-data-js#readme.md","bugs":{"url":"https://github.com/berlin-vegan/berlin-vegan-data-js/issues"},"bin":{"berlin-vegan-data-js":"target/src/cli/berlin-vegan-data-js.js"},"dist":{"shasum":"a730306d040df323bba1765bc9730d4643f3d2b7","tarball":"https://registry.npmjs.org/@berlin-vegan/berlin-vegan-data-js/-/berlin-vegan-data-js-0.4.0.tgz","fileCount":74,"integrity":"sha512-EVMWo+V9n/Y3gog1weyGIZLNQcI6kQjHYpWfIxXQefSY9c79VPuMtyn4DBJYwsn2Hl0frRGuE8u2INaa9Uw78g==","signatures":[{"sig":"MEUCIQDDNsdhhLKO+oFCbR2VYymre3tBsTUUEVLUDfDpeRvfLAIgYRPnU8ZKxOj0BPLIwBjHr1t7Lk9u8+4zdjJOLEvLihw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":111572},"main":"target/src/index.js","types":"target/src/index.d.ts","gitHead":"be739c83a3f5a53c1823b26e04d3f0da30b92f79","scripts":{"test":"npm run _test","_lint":"tslint src/**/*.ts","_test":"jasmine target/src/main/**/*.js --helper=target/src/test/helper.js --stop-on-failure=","start":"npm test && concurrently \"npm run _compile:watch\" \"npm run _lint:watch\" \"npm run _test:watch\"","_clean":"rimraf target","prepack":"npm test","pretest":"npm run _clean && npm run _compile && npm run _lint","_compile":"tsc","_lint:watch":"chokidar src/**/*.ts --command \"npm run _lint\" --throttle 2000","_test:watch":"chokidar target/src/main/**/*.js --command \"npm run _test\" --throttle 2000","_compile:watch":"tsc --watch"},"_npmUser":{"name":"marco-eckstein","email":"marco.eckstein@gmx.de"},"repository":{"url":"git+https://github.com/berlin-vegan/berlin-vegan-data-js.git","type":"git"},"_npmVersion":"10.2.3","description":"A library and stand-alone program that specifies the native open-source JSON format used by Berlin-Vegan and allows to convert data in this format to be converted to OpenStreetMap/Overpass and Schema.org JSON formats.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"axios":"^0.19.2","core-js":"^3.6.5","commander":"^4.1.1","source-map-support":"^0.5.16"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","tslint":"^6.1.0","jasmine":"^3.5.0","typescript":"^3.8.3","@types/node":"^13.13.0","chokidar-cli":"^2.1.0","concurrently":"^5.1.0","@types/jasmine":"^3.5.10","@types/source-map-support":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/berlin-vegan-data-js_0.4.0_1746578238408_0.611733566259387","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2020-04-21T01:22:40.534Z","modified":"2025-05-07T10:05:59.529Z","0.1.0":"2020-04-21T01:22:41.002Z","0.2.0":"2020-04-21T01:44:45.517Z","0.4.0":"2025-05-07T00:37:18.630Z"},"bugs":{"url":"https://github.com/berlin-vegan/berlin-vegan-data-js/issues"},"license":"AGPL-3.0-only","homepage":"https://github.com/berlin-vegan/berlin-vegan-data-js#readme.md","keywords":["berlin-vegan","berlin-vegan-map","vegan","map"],"repository":{"url":"git+https://github.com/berlin-vegan/berlin-vegan-data-js.git","type":"git"},"description":"A library and stand-alone program that specifies the native open-source JSON format used by Berlin-Vegan and allows to convert data in this format to be converted to OpenStreetMap/Overpass and Schema.org JSON formats.","maintainers":[{"email":"marco.eckstein@gmx.de","name":"marco-eckstein"},{"email":"smeier@tapnic.com","name":"smeir64"}],"readme":"# berlin-vegan-data-js\r\n\r\n[![npm version](https://badge.fury.io/js/%40berlin-vegan%2Fberlin-vegan-data-js.svg)](\r\n    https://badge.fury.io/js/%40berlin-vegan%2Fberlin-vegan-data-js\r\n)\r\n\r\nA library and stand-alone program that specifies the native open-source JSON format used by Berlin-Vegan\r\nand allows to convert data in this format to be converted to OpenStreetMap/Overpass and Schema.org JSON formats.\r\n\r\n## Native format\r\n\r\nThe backend [berlin-vegan-data](https://github.com/Berlin-Vegan/berlin-vegan-data) and the\r\n[berlin-vegan-tools](https://github.com/Berlin-Vegan/berlin-vegan-tools) generate JSON files of the native\r\nformat. The TypeScript files in\r\n[`src/main/model/json/native`](\r\n    https://github.com/Berlin-Vegan/berlin-vegan-data-js/tree/master/src/main/model/json/native\r\n) specify it.\r\n\r\n## API endpoints\r\n\r\nFor Berlin-Vegan, the API endpoints are:\r\n\r\n- Gastronomy locations: <http://www.berlin-vegan.de/app/data/GastroLocations.json>\r\n- Shopping locations: <http://www.berlin-vegan.de/app/data/ShoppingLocations.json>\r\n\r\n## Conversion\r\n\r\nYou can covert data in the native format to the following target formats:\r\n\r\n- [OSM JSON](https://wiki.openstreetmap.org/wiki/OSM_JSON)\r\n  For data that cannot be expressed with OpenStreetMap tags, we add custom tags at\r\n  `elements/custom_tags/custom:*`.\r\n- [Overpass GeoJSON](https://wiki.openstreetmap.org/wiki/Overpass_turbo/GeoJSON)\r\n  For data that cannot be expressed with OpenStreetMap tags, we add properties prefixed with \"custom:\".\r\n- [Schema.org](https://schema.org/)\r\n  Only a subset of the information can be expressed in this format, and we do not add custom properties.\r\n\r\nFor Overpass formats, we use established [OpenStreetMap keys](https://wiki.openstreetmap.org/wiki/Category:Keys)\r\nwhere possible, but we also use some additional key that we deem appropriate for OpenStreetMaps.\r\nInformation not appropriate for OSM goes into custom tags. OSM tags have string values, but custom tags may be\r\nstructured.\r\n\r\nFor some information, there are multiple established OSM tags, e.g. \"email\" and \"contact:email\".\r\nYou may opt to include these redundant tags.\r\n\r\n## Usage\r\n\r\n### Requirements\r\n\r\n- [Node](https://nodejs.org/)\r\n\r\n### Command-line\r\n\r\nExample:\r\n\r\n```sh\r\nberlin-vegan-data-js --schema schema-org -in http://www.berlin-vegan.de/app/data/GastroLocations.json --config config.json\r\n```\r\n\r\nFor the format of the config file, see\r\n[`src/main/conversion/Config.ts`](\r\n    https://github.com/Berlin-Vegan/berlin-vegan-data-js/tree/master/src/main/conversion/Config.ts\r\n)\r\nand\r\n[`src/main/conversion/default-config.json`](\r\n    https://github.com/Berlin-Vegan/berlin-vegan-data-js/tree/master/src/main/conversion/default-config.json\r\n)\r\n.\r\n\r\nTo see all options, run:\r\n\r\n```sh\r\nberlin-vegan-data-js --help\r\n```\r\n\r\n### API\r\n\r\nExample:\r\n\r\n```js\r\nimport { SchemaOrgConverter } from \"@berlin-vegan/berlin-vegan-data-js\"\r\n\r\n...\r\n\r\nconst foodEstablishments = new SchemaOrgConverter(config).convertGastroLocations(locations)\r\n```\r\n\r\n## Development\r\n\r\nNo global modules other than `npm` are necessary.\r\n\r\n- Run `npm install` once after checking out.\r\n- Then, run either `npm test` for a single full build cycle (clean, compile, lint, test),\r\n  or `npm start` for running the full cycle initially and then watch for file changes which will\r\n  trigger appropriate parts of the build cycle (compile, lint, test). The watch mode is not bulletproof:\r\n  It works for file updates, but you may get problems if you rename or delete files.\r\n- Publish with `npm publish --access public`. This will run the full build cycle before publishing.\r\n\r\n## License\r\n\r\nAGPL-3.0-only (see `LICENSE.txt`)\\\r\nCopyright (C) 2015-2025  Berlin-Vegan\r\n","readmeFilename":"README.md"}