{"id":21520873,"url":"https://github.com/hyhello/geo-cli","last_synced_at":"2025-04-09T22:21:36.419Z","repository":{"id":57116965,"uuid":"421640591","full_name":"Hyhello/geo-cli","owner":"Hyhello","description":"Engineering tool based on geojson performance optimization.","archived":false,"fork":false,"pushed_at":"2022-02-28T07:31:53.000Z","size":136,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T01:42:55.876Z","etag":null,"topics":["cli","echarts","geojson"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hyhello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-27T01:41:52.000Z","updated_at":"2022-03-28T16:29:35.000Z","dependencies_parsed_at":"2022-08-22T22:20:31.622Z","dependency_job_id":null,"html_url":"https://github.com/Hyhello/geo-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyhello%2Fgeo-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyhello%2Fgeo-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyhello%2Fgeo-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hyhello%2Fgeo-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hyhello","download_url":"https://codeload.github.com/Hyhello/geo-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120214,"owners_count":21050909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","echarts","geojson"],"created_at":"2024-11-24T01:04:36.424Z","updated_at":"2025-04-09T22:21:36.398Z","avatar_url":"https://github.com/Hyhello.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @hyhello/geo-cli\n\nEngineering tool based on GeoJson performance optimization.\n\nRead this document in: [简体中文](https://github.com/Hyhello/geo-cli/blob/master/README.zh_CN.md).\n\n## Installation\n\nWhile you can install Geo CLI globally on your machine, it's much better to install it locally project by project.\n\nThere are two primary reasons for this.\n\n1. Different projects on the same machine can depend on different versions of Geo allowing you to update them individually.\n2. Not having an implicit dependency on the environment you are working in makes your project far more portable and easier to setup.\n\nWe can install Geo CLI locally by running:\n\n```Shell\nnpm install --save-dev @hyhello/geo-cli\n```\n\n\u003e **Note:** If you do not have a package.json, create one before installing. This will ensure proper interaction with the npx command.\n\nAfter that finishes installing, your package.json file should include:\n\n```Diff\n{\n    \"devDependencies\": {\n+       \"@hyhello/geo-cli\": \"^0.0.4\"\n    }\n}\n```\n\n## Examples (Run it and see it)\n\nCheck out the [`examples/`](https://github.com/Hyhello/geo-cli/tree/master/examples) folder for code and interface examples.\n\n```Shell\nnode examples/demo.json\n# etc...\n```\n\n## Usage\n\n\u003e **Note:** Please install @hyhello/geo-cli first before npx geo, you can also drop it inside of an npm run script or you may instead execute with the relative path instead. ./node_modules/.bin/geo\n\n```Shell\nnpx geo demo.json\n```\n\n### compile\n\nCompile the file demo.json and overwrite the source file.\n\n```Shell\nnpx geo demo.json\n# overwrite demo.json\n```\n\nIf you would like to input to a file or dir, you may use --input or -i.\n\n```Shell\nnpx geo --input demo.json\n```\n\nIf you would like to output to a file or dir, you may use --output or -o.\n\n```Shell\nnpx geo demo.json --output other.json\n```\n\n### pretty\n\nBeautify JSON files you may use --pretty or -p [number|boolean]\n\n```Shell\nnpx geo demo.json --pretty\n```\n\nabove indentation is 2\n\nIf you want to customize the indentation, you can --pretty=[number]\n\n```Shell\nnpx geo demo.json --pretty=4\n```\n\n### recursive\n\nIf you --input is a folder, and you want to recursively find all .json files in the folder, you can use --recursive or -r\n\n```Shell\nnpx geo --input examples --recursive\n```\n\n### relative\n\nIf you --output is a folder, and you don't want to keep the previous directory structure, you can use --no-relative\n\n```Shell\nnpx geo --input examples --on-relative\n```\n\n### emptyDir\n\nIf you --output is a folder, and you want to empty it before you compile\n\n```Shell\nnpx geo --input examples -o output --empty-dir\n```\n\n### exclude\n\nExclude files that match the regular expression pattern\n\n--exclude or -e\n\n```Shell\nnpx geo examples --exclude examples/other.json\n```\n\n### Custom config path\n\nCustom configuration file. only supported .js file\n\n--config-file or -c\n\n```Shell\nnpx geo demo.json --config-file geo.config.js\n```\n\nIf you don't know how to configure it, you can exec geo --init\n\n```Shell\nnpx geo --init\n```\n\n### help\n\n--help or -h\n\n```Shell\nnpx geo --help\n```\n\n### version\n\n--version or -v\n\n```Shell\nnpx geo --version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyhello%2Fgeo-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyhello%2Fgeo-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyhello%2Fgeo-cli/lists"}