π Get Structure is an API that helps to get hierarchy (structure) of an github repository like tree command in bash
Example Request:
POST
getstructure.noir.land
{
body: {
username: "Noirrs",
repository: "getStructure",
branch: "master"
}
}
* API endpoint: getstructure.noir.land
* username: Repository Author's github nickname
* repository: Github Repository's name
* branch: Github Repository's main branch [generally => master / main]
* method: POST
Example Response:
* Response Type: String | Error<typless>
ββ src
β ββ main.ts
β ββ app.service.ts
β ββ app.module.ts
β ββ app.controller.ts
β ββ functions
β β ββ separateRoots.ts
β β ββ separatePaths.ts
β β ββ separateFiles.ts
β β ββ mergeSeparateds.ts
β β ββ makeTree.ts
β β ββ main.ts
β β ββ getRepository.ts
β β ββ getFileNames.ts
β ββ types
β ββ types.d.ts
ββ .gitignore
ββ README.md
ββ nest-cli.json
ββ package-lock.json
ββ package.json
ββ tsconfig.build.json
ββ tsconfig.json
ββ vercel.json
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod