{"id":18023983,"url":"https://github.com/lete114/output-line","last_synced_at":"2025-03-27T00:30:46.147Z","repository":{"id":57316936,"uuid":"460824727","full_name":"Lete114/Output-Line","owner":"Lete114","description":"When executing a node program, the console outputs the console line number","archived":false,"fork":false,"pushed_at":"2022-03-08T15:44:37.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T16:53:07.652Z","etag":null,"topics":["console","filepath","javascript","line","nodejs"],"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/Lete114.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":"2022-02-18T11:23:42.000Z","updated_at":"2024-08-14T15:02:01.000Z","dependencies_parsed_at":"2022-08-25T20:41:06.882Z","dependency_job_id":null,"html_url":"https://github.com/Lete114/Output-Line","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/Lete114%2FOutput-Line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2FOutput-Line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2FOutput-Line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2FOutput-Line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lete114","download_url":"https://codeload.github.com/Lete114/Output-Line/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760561,"owners_count":20667886,"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":["console","filepath","javascript","line","nodejs"],"created_at":"2024-10-30T07:11:35.650Z","updated_at":"2025-03-27T00:30:45.887Z","avatar_url":"https://github.com/Lete114.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"right\"\u003e\n  语言:\n  中文\n  \u003ca title=\"English\" href=\"/README_EN.md\"\u003eEnglish\u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003e\u003ca href=\"https://github.com/lete114/Output-Line\" target=\"_blank\"\u003eOutput-Line\u003c/a\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003e执行node程序时，控制台中输出console行号\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Lete114/Output-Line/releases/\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/output-line\" alt=\"Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Lete114/Output-Line/tree/main\"\u003e\u003cimg src=\"https://img.shields.io/github/package-json/v/Lete114/Output-Line/main?color=%231ab1ad\u0026label=main\" alt=\"dev\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Lete114/Output-Line/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/Lete114/Output-Line?color=FF5531\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 安装\n\n```bash\nnpm install output-line --save\n```\n\n## 快速开始\n\n```js\n/*\n┌────────────┬────────────┬────────────┐\n│  property  │  default   │    type    │\n├────────────┼────────────┼────────────┤\n│   methods  │  Console   │   Array    │\n│   prefix   │   '🐞'     │   String   │\n│ isRelative │   false    │   Boolean  │\n└────────────┴────────────┴────────────┘\n*/\n\n// 使用默认参数\n// require('output-line')()\n\n// 自定义参数\nconst options = {\n  methods: ['debug', 'log', 'warn', 'error'],\n  prefix: '🐸',\n  isRelative: true\n}\nrequire('output-line')(options)\n\nconsole.log('%s %d', 'age', 18)\n\nconsole.log({ f: 'foo', b: 'bar' })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Foutput-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flete114%2Foutput-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Foutput-line/lists"}