{"id":18368203,"url":"https://github.com/thinkjs/think-inspect","last_synced_at":"2025-04-10T19:37:14.321Z","repository":{"id":65412384,"uuid":"81311293","full_name":"thinkjs/think-inspect","owner":"thinkjs","description":"inspect dirname/filename in ThinkJS 3.0","archived":false,"fork":false,"pushed_at":"2017-07-13T13:24:09.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-15T22:35:49.449Z","etag":null,"topics":["inspector","thinkjs"],"latest_commit_sha":null,"homepage":null,"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/thinkjs.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-02-08T09:23:44.000Z","updated_at":"2017-03-10T01:13:02.000Z","dependencies_parsed_at":"2023-01-22T07:55:24.817Z","dependency_job_id":null,"html_url":"https://github.com/thinkjs/think-inspect","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/thinkjs%2Fthink-inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkjs%2Fthink-inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkjs","download_url":"https://codeload.github.com/thinkjs/think-inspect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281415,"owners_count":21077423,"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":["inspector","thinkjs"],"created_at":"2024-11-05T23:25:03.200Z","updated_at":"2025-04-10T19:37:14.301Z","avatar_url":"https://github.com/thinkjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# think-inspect\n[![Build Status](https://img.shields.io/travis/thinkjs/think-inspect/master.svg?style=flat-square)](https://travis-ci.org/thinkjs/think-inspect)\n[![Coverage Status](https://img.shields.io/coveralls/thinkjs/think-inspect/master.svg?style=flat-square)](https://coveralls.io/github/thinkjs/think-inspect?branch=master)\n[![npm](https://img.shields.io/npm/v/think-inspect.svg?colorB=brightgreen\u0026style=flat-square)](https://www.npmjs.com/package/think-inspect)\n\n\n`think-inspect` checks if a project meets the requirement of ThinkJS 3.0\n\n## Usage\n\nUsing npm:\n\n```sh\nnpm install think-inspect\n```\n\nIn Node.js:\n\n```js\nimport Inspector from 'think-inspect';\n...\n\nconst inspector = new Inspector({\n  THINK_PATH: '/somepath/thinkjs',\n  APP_PATH: '/somepath/app_path',\n  ROOT_PATH: '/somepath/root_path',\n  env: 'development',\n  locale: 'locale'\n  logger: thinkLoggerInstance\n});\ninspector.checkNodeVersion();\ninspector.checkFileName();\ninspector.checkDependencies();\n\n```\n\n## APIs\n\n| API                 | Param                                    | Description                              |\n| ------------------- | ---------------------------------------- | ---------------------------------------- |\n| `checkNodeVersion`  |  | check if node version meets the requirement in package.json |\n| `checkFileName`     |  | check if filenames in application are in lowercase |\n| `checkDependencies` |  | check dependencies are installed before server starts |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkjs%2Fthink-inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkjs%2Fthink-inspect/lists"}