{"id":26775525,"url":"https://github.com/n4bb12/nehemiah","last_synced_at":"2025-03-29T03:18:49.139Z","repository":{"id":55550656,"uuid":"145924231","full_name":"n4bb12/nehemiah","owner":"n4bb12","description":"🌱 Library for managing repositories","archived":false,"fork":false,"pushed_at":"2020-12-22T13:41:02.000Z","size":417,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T21:46:04.864Z","etag":null,"topics":["config","init","maintain","repo","setup","sync"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n4bb12.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":"2018-08-24T01:03:00.000Z","updated_at":"2020-07-10T22:02:16.000Z","dependencies_parsed_at":"2022-08-15T03:00:54.597Z","dependency_job_id":null,"html_url":"https://github.com/n4bb12/nehemiah","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4bb12%2Fnehemiah","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4bb12%2Fnehemiah/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4bb12%2Fnehemiah/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4bb12%2Fnehemiah/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n4bb12","download_url":"https://codeload.github.com/n4bb12/nehemiah/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131335,"owners_count":20728303,"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":["config","init","maintain","repo","setup","sync"],"created_at":"2025-03-29T03:18:48.503Z","updated_at":"2025-03-29T03:18:49.123Z","avatar_url":"https://github.com/n4bb12.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg alt=\"Logo\" src=\"https://image.flaticon.com/icons/svg/1070/1070261.svg\" height=\"48\"\u003e\n  Nehemiah\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  A library for managing repositories\n\u003c/p\u003e\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"justify\"\u003e\n      \u003ci\u003e\n        Nehemiah was a high official in the Persian court of King Artaxerxes I of Persia and led the third return of the Jewish people after seventy years of exile. He organized the reconstruction of the wall of Jerusalem in record time while defending against opposition on all sides. His talent, his huge organizational accomplishments and his faith in God inspired the name for this package.\n        \u003ca href=\"https://en.wikipedia.org/wiki/Nehemiah\"\u003eRead the whole story.\u003c/a\u003e\n      \u003c/i\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/nehemiah\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://flat.badgen.net/npm/v/nehemiah?icon=npm\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://raw.githubusercontent.com/n4bb12/nehemiah/master/LICENSE\"\u003e\n    \u003cimg alt=\"License\" src=\"https://flat.badgen.net/github/license/n4bb12/nehemiah?icon=github\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/n4bb12/nehemiah/issues/new/choose\"\u003e\n    \u003cimg alt=\"Issues\" src=\"https://flat.badgen.net/badge/github/create issue/pink?icon=github\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://circleci.com/gh/n4bb12/workflows/nehemiah\"\u003e\n    \u003cimg alt=\"CircleCI\" src=\"https://flat.badgen.net/circleci/github/n4bb12/nehemiah?icon=circleci\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://david-dm.org/n4bb12/nehemiah\"\u003e\n    \u003cimg alt=\"Dependencies\" src=\"https://flat.badgen.net/david/dep/n4bb12/nehemiah?icon=npm\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/github/n4bb12/nehemiah\"\u003e\n    \u003cimg alt=\"Coverage\" src=\"https://flat.badgen.net/codecov/c/github/n4bb12/nehemiah?icon=codecov\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://lgtm.com/projects/g/n4bb12/nehemiah/alerts\"\u003e\n    \u003cimg alt=\"LGTM\" src=\"https://flat.badgen.net/lgtm/alerts/g/n4bb12/nehemiah?icon=lgtm\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## About\n\nBasically monorepos without the monorepo.\nNehemiah synchronizes directories and executes tasks within them, based on code you write using a simple API.\n\nFeatures include:\n\n- Scan repo for files\n- Test if file exists --\u003e find out what type of project it is, or if a certain dependency/config file is used\n- Copy file --\u003e add file to repo if it doesn't exist, overwrite file, e.g. `tslint.json`\n- Delete file --\u003e remove unwanted files for cleanup, e.g. logfiles\n- Merge file fragments --\u003e insert partials into `README.md`\n- Edit json file --\u003e update `package.json` with standardized values\n- Edit line-based file --\u003e update `.gitignore`\n- Run shell commands in directory --\u003e `yarn install`, `git fetch`, `yarn upgrade`, `sort-package-json`\n- Get warned if something deviates from expectations --\u003e no tests in `package.json`, missing license\n\n\n## Install\n\n```\nyarn add nehemiah\n```\n\n## Example\n\n```ts\nimport Nehemiah from \"nehemiah\"\n\nconst projects = [\"a\", \"b\", \"c\"]\n\ninterface Package {\n  author: string\n  keywords: string[]\n}\n\nasync function updateProject(dir: string) {\n  const n = new Nehemiah(dir)\n\n  const updatePackage = () =\u003e n.modify(\"package.json\")\n    .asJson\u003cPackage\u003e(p =\u003e {\n      p.author = \"Esra\"\n\n      if (!Array.isArray(p.keywords) || p.keywords.length \u003c 3) {\n        n.warn(\"Not enough keywords\")\n      }\n    })\n\n  const shouldHaveLicense = async () =\u003e {\n    if (!await n.exists(\"license*\")) {\n      n.warn(\"Missing license\")\n    }\n  }\n\n  const deleteLogs = async () =\u003e n.delete(\"*.log\")\n\n  const updateEditorConfig = async () =\u003e\n    n.copy(__dirname, \"templates/.editorconfig\").to(\".editorconfig\")\n\n  const updateMinorPatch = async () =\u003e\n    n.run(\"yarn upgrade --mutext file\")\n\n  const gitFetchPrune = () =\u003e n.run(\"git fetch --prune\")\n\n  await Promise.all([\n    updatePackage,\n    shouldHaveLicense,\n    deleteLogs,\n    updateEditorConfig,\n    updateMinorPatch,\n    gitFetchPrune,\n  ])\n}\n\n(async () =\u003e {\n  for (const dir of projects) {\n    await updateProject(dir)\n  }\n})()\n```\n\n#\n\n\u003cdiv\u003eLogo made by \u003ca href=\"http://www.freepik.com\" title=\"Freepik\"\u003eFreepik\u003c/a\u003e from \u003ca href=\"https://www.flaticon.com/free-icon/divide_1070261\" title=\"Flaticon\"\u003ewww.flaticon.com\u003c/a\u003e is licensed by \u003ca href=\"http://creativecommons.org/licenses/by/3.0/\" title=\"Creative Commons BY 3.0\" target=\"_blank\"\u003eCC 3.0 BY\u003c/a\u003e\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn4bb12%2Fnehemiah","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn4bb12%2Fnehemiah","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn4bb12%2Fnehemiah/lists"}