{"id":21809903,"url":"https://github.com/japa/create-japa","last_synced_at":"2025-12-26T08:29:07.700Z","repository":{"id":112775777,"uuid":"456756998","full_name":"japa/create-japa","owner":"japa","description":"Initialize Japa in existing Node.js projects","archived":false,"fork":false,"pushed_at":"2025-01-14T09:04:38.000Z","size":1802,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"2.x","last_synced_at":"2025-03-27T12:12:47.006Z","etag":null,"topics":["initializer"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/japa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"thetutlage"}},"created_at":"2022-02-08T02:40:49.000Z","updated_at":"2025-01-14T09:04:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9316d0b-5005-4342-90f2-318572aa7c58","html_url":"https://github.com/japa/create-japa","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"2b646d269d098a8f2863377abbf4eef8cf4a7337"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fcreate-japa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fcreate-japa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fcreate-japa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japa%2Fcreate-japa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japa","download_url":"https://codeload.github.com/japa/create-japa/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788867,"owners_count":21161726,"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":["initializer"],"created_at":"2024-11-27T13:29:11.292Z","updated_at":"2025-10-19T23:07:55.937Z","avatar_url":"https://github.com/japa.png","language":"TypeScript","funding_links":["https://github.com/sponsors/thetutlage"],"categories":[],"sub_categories":[],"readme":"# create-japa\n\u003e Setup japa inside an existing Node.js app\n\n[![github-actions-image]][github-actions-url] [![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]\n\n![](./japa_art.png)\n\nThe `create-japa` is a CLI utility to configure Japa inside a new or existing Node.js project.\n\nThe process involves installing the required packages and creating the necessary files. The setup works with Typescript and JavaScript projects.\n\n## Usage\nNavigate to the root of your project and run the following command.\n\n```sh\nnpm init japa\n```\n\n```sh\nyarn create japa\n```\n\n```sh\npnpm create japa\n```\n\n## Options\n\n### `destination (optional)`\n\nYou can pass the destination directory as the first argument to the command. The `process.cwd()` will be used when the option is not defined.\n\n```sh\nnpm init japa my-app\n```\n\n### `--package-manager`\n\nDefine the package manager to use to install dependencies. If not defined, we will attempt to detect the package manager using [@antfu/install-pkg\n](https://github.com/antfu/install-pkg) package.\n\n```sh\nnpm init japa -- --package-manager=pnpm\n```\n\n### `--plugins`\nDefine an array of plugins to install. We will display a series of prompts if this flag is not set.\n\n```sh\nnpm init japa -- --plugins=\"@japa/api-client\" --plugins=\"@japa/snapshot\"\n```\n\n### `--project-type`\nDefine the project type for which you want to configure Japa. The value could be either `typescript` or `javascript`. If this flag is not set, we will display a prompt for the project type selection.\n\n```sh\nnpm init japa -- --project-type=typescript\n```\n\n### `--sample-test-file`\nEnable the flag to create a sample test file or disable it not to create it.\n\n```sh\n# Enable it\nnpm init japa -- --sample-test-file\n\n# Disable it\nnpm init japa -- --no-sample-test-file\n```\n\n[github-actions-image]: https://img.shields.io/github/actions/workflow/status/japa/create-japa/checks.yml?style=for-the-badge\n[github-actions-url]: https://github.com/japa/create-japa/actions/workflows/checks.yml \"github-actions\"\n\n[npm-image]: https://img.shields.io/npm/v/create-japa.svg?style=for-the-badge\u0026logo=npm\n[npm-url]: https://npmjs.org/package/create-japa \"npm\"\n\n[license-image]: https://img.shields.io/npm/l/create-japa?color=blueviolet\u0026style=for-the-badge\n[license-url]: LICENSE.md \"license\"\n\n[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge\u0026logo=typescript\n[typescript-url]:  \"typescript\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapa%2Fcreate-japa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjapa%2Fcreate-japa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapa%2Fcreate-japa/lists"}