{"id":13701542,"url":"https://github.com/Turfjs/turf-node-example","last_synced_at":"2025-05-04T21:31:00.444Z","repository":{"id":26904455,"uuid":"30366178","full_name":"Turfjs/turf-node-example","owner":"Turfjs","description":"an example of how to use Turf for a scripting task with node. ","archived":false,"fork":false,"pushed_at":"2017-05-19T23:29:41.000Z","size":5,"stargazers_count":90,"open_issues_count":1,"forks_count":33,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-29T21:39:37.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turfjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-05T16:40:34.000Z","updated_at":"2025-04-14T17:33:39.000Z","dependencies_parsed_at":"2022-07-24T12:46:07.789Z","dependency_job_id":null,"html_url":"https://github.com/Turfjs/turf-node-example","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/Turfjs%2Fturf-node-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-node-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-node-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turfjs%2Fturf-node-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turfjs","download_url":"https://codeload.github.com/Turfjs/turf-node-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252403850,"owners_count":21742454,"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":[],"created_at":"2024-08-02T20:01:47.845Z","updated_at":"2025-05-04T21:31:00.115Z","avatar_url":"https://github.com/Turfjs.png","language":"JavaScript","readme":"# turf node example\n\nThis is an example of how to use Turf for a scripting task with node. This\ntechnique lets you process bigger amounts of data than you could in a browser,\nand have node read and write files.\n\nYou'll need a few skills to get started:\n\n* Basic JavaScript proficiency: you might want to do a [Codecademy](http://www.codecademy.com/) lesson\n  or two to get comfortable with the language if you haven't coded before.\n* A text editor for code. Good options include [Atom](https://atom.io/),\n  [Sublime Text](http://www.sublimetext.com/), and [Brackets](http://brackets.io/).\n* `node`: [nodejs.org](http://nodejs.org/) provides a free download and installer\n  for all major platforms.\n* Ability to use your terminal: [here's an introduction for Mac users](https://www.youtube.com/watch?v=I65C4ZXK4ek)\n\n## Installation\n\nIf you have `node` installed, you also have a command called `npm` installed:\nthis is what you use to download extra software for `node`. This project has\nsome preset requirements, which are stored in [package.json](package.json),\nso if you open a terminal in the same folder as this project and run the command\n\n```sh\n$ npm install\n```\n\nThen the `npm` command with automatically find, download, and install `turf`\nto this directory.\n\nNext, you should open `index.js`, either locally or\n[on GitHub](index.js), read through the code comments to understand what it does.\n\nWhen you feel comfortable with your understanding of the process, run it:\n\n```sh\n$ node index.js\n```\n\nThis tells `node` to run the code in `index.js`. That should quickly report:\n\n```sh\n$ node index.js\nsaved output/convex_hull.geojson\n```\n\nAnd you can open the files `input/random.geojson` and `output/convex_hull.geojson`\nto see what the script did.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTurfjs%2Fturf-node-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTurfjs%2Fturf-node-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTurfjs%2Fturf-node-example/lists"}