{"id":16296834,"url":"https://github.com/windomz/leetcode-init","last_synced_at":"2025-06-25T16:02:40.458Z","repository":{"id":57508002,"uuid":"104765404","full_name":"WindomZ/leetcode-init","owner":"WindomZ","description":":triangular_ruler: A tool to create leetcode code template via cli.","archived":false,"fork":false,"pushed_at":"2018-01-21T07:59:37.000Z","size":34,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:40:35.145Z","etag":null,"topics":["leetcode","leetcode-golang","leetcode-template"],"latest_commit_sha":null,"homepage":"","language":"Go","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/WindomZ.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":"2017-09-25T15:05:57.000Z","updated_at":"2018-01-07T13:55:28.000Z","dependencies_parsed_at":"2022-09-26T17:51:11.797Z","dependency_job_id":null,"html_url":"https://github.com/WindomZ/leetcode-init","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fleetcode-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fleetcode-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fleetcode-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fleetcode-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/leetcode-init/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049166,"owners_count":21039167,"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":["leetcode","leetcode-golang","leetcode-template"],"created_at":"2024-10-10T20:24:07.928Z","updated_at":"2025-04-09T13:31:30.912Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leetcode-init\n\n\u003e A tool to creates leetcode code template via cli.\n\n[![Version](https://img.shields.io/badge/version-v1.1.0-brightgreen.svg)](https://github.com/WindomZ/leetcode-init/releases)\n[![Build Status](https://travis-ci.org/WindomZ/leetcode-init.svg?branch=master)](https://travis-ci.org/WindomZ/leetcode-init)\n[![Go Report Card](https://goreportcard.com/badge/github.com/WindomZ/leetcode-init)](https://goreportcard.com/report/github.com/WindomZ/leetcode-init)\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/github.com/WindomZ/leetcode-init/leetcode?status.svg)](https://godoc.org/github.com/WindomZ/leetcode-init/leetcode)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FWindomZ%2Fleetcode-init.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FWindomZ%2Fleetcode-init?ref=badge_shield)\n\n## Install\n```bash\ngo get -u github.com/WindomZ/leetcode-init/...\n```\n\n## Usage\nTake the first problem([1. Two Sum](https://leetcode.com/problems/two-sum/description/)) for example: \n\n```bash\nleetcode-init -k 1\n# or\nleetcode-init -k two-sum\n# or\nleetcode-init -k 'Two Sum'\n# or\nleetcode-init -u 'https://leetcode.com/problems/two-sum'\n```\n\nThen, a directory(name `twosum`) is generated under the current path.\n\n```\n.\n└── twosum\n    ├── README.md\n    ├── twosum.go\n    └── twosum_test.go\n```\n\nIf with `-m TEMPLATE.md`:\n\n```bash\nleetcode-init -t two-sum -m TEMPLATE.md\n```\n\nloads `TEMPLATE.md` file and renders it in the directory.\n\n```\n.\n└── twosum\n    ├── README.md\n    ├── TEMPLATE.md\n    ├── twosum.go\n    └── twosum_test.go\n```\n\n## Related\n\n- [WindomZ/leetcode.go](https://github.com/WindomZ/leetcode.go) LeetCode Problem's Solutions(Golang).\n\n## Contributing\n\nWelcome to pull requests, report bugs, suggest ideas and discuss \n**leetcode-init** on [issues page](https://github.com/WindomZ/leetcode-init/issues).\n\nIf you like it then you can put a :star: on it.\n\n## Roadmap\n\n- [x] Support Golang.\n- [ ] Support JavaScript.\n- [ ] Support Python.\n\n## License\n\n[MIT](https://github.com/WindomZ/leetcode-init/blob/master/LICENSE)\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FWindomZ%2Fleetcode-init.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FWindomZ%2Fleetcode-init?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fleetcode-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fleetcode-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fleetcode-init/lists"}