# cordova-create

> Apache Cordova create module. Creates new project from default or template

Latest version **6.0.0** (published 2025-10-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install cordova-create
pnpm add cordova-create
yarn add cordova-create
bun add cordova-create
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2025-10-22 |
| First published | 2014-08-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20.17.0 \|\| >=22.9.0 |
| Dependencies | 10 |
| Unpacked size | 31.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Apache Software Foundation |
| Maintainers | brodybits, dpogue, cordovaowner, stevegill, purplecabbage, anis, filmaj, bowserj, shazron, surajpindoria, erisu, niklasmerz, janpio, normanbreau, pvpoyer, apachebuilds |
| Keywords | cordova, create, apache, ecosystem:cordova, cordova:tool |

## Links

- npm: https://www.npmjs.com/package/cordova-create
- Repository: https://github.com/apache/cordova-create
- Homepage: https://github.com/apache/cordova-create#readme
- Issues: https://github.com/apache/cordova-create/issues
- npm.io page: https://npm.io/package/cordova-create

## Dependencies (10)

- [tmp](https://npm.io/package/tmp.md) ^0.2.5
- [globby](https://npm.io/package/globby.md) ^11.1.0
- [isobject](https://npm.io/package/isobject.md) ^4.0.0
- [import-fresh](https://npm.io/package/import-fresh.md) ^3.3.1
- [cordova-fetch](https://npm.io/package/cordova-fetch.md) ^5.0.0
- [cordova-common](https://npm.io/package/cordova-common.md) ^6.0.0
- [path-is-inside](https://npm.io/package/path-is-inside.md) ^1.0.2
- [npm-package-arg](https://npm.io/package/npm-package-arg.md) ^13.0.0
- [valid-identifier](https://npm.io/package/valid-identifier.md) 0.0.2
- [cordova-app-hello-world](https://npm.io/package/cordova-app-hello-world.md) ^7.0.0

## Recent versions

- 6.0.0 (latest) — 2025-10-22
- 6.0.1-nightly.20251125002453809.sha.d493d507 (nightly) — 2025-11-25
- 6.0.1-nightly.20251124002730161.sha.d493d507 — 2025-11-24
- 6.0.1-nightly.20251123002925587.sha.d493d507 — 2025-11-23
- 6.0.1-nightly.20251122002424873.sha.67742961 — 2025-11-22
- 6.0.1-nightly.20251121002528744.sha.67742961 — 2025-11-21
- 6.0.1-nightly.20251120002524064.sha.67742961 — 2025-11-20
- 6.0.1-nightly.20251119002618228.sha.d4edcf8a — 2025-11-19
- 6.0.1-nightly.20251118002526729.sha.7cdf8234 — 2025-11-18
- 6.0.1-nightly.20251117002630731.sha.7cdf8234 — 2025-11-17
- 6.0.1-nightly.20251116002746597.sha.7cdf8234 — 2025-11-16
- 6.0.1-nightly.20251115002454896.sha.7cdf8234 — 2025-11-15
- 6.0.1-nightly.20251114002605023.sha.7cdf8234 — 2025-11-14
- 6.0.1-nightly.20251113002531212.sha.7cdf8234 — 2025-11-13
- 6.0.1-nightly.20251112002541218.sha.7cdf8234 — 2025-11-12
- … 2381 more at https://npm.io/package/cordova-create/versions

## README

<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->

# cordova-create

[![NPM](https://nodei.co/npm/cordova-create.svg?style=flat&data=n,v,u&color=blue)](https://www.npmjs.com/package/cordova-create)

[![Node CI](https://github.com/apache/cordova-create/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/apache/cordova-create/actions/workflows/ci.yml?query=branch%3Amaster)
[![Release Audit](https://github.com/apache/cordova-create/actions/workflows/release-audit.yml/badge.svg?branch=master)](https://github.com/apache/cordova-create/actions/workflows/release-audit.yml?query=branch%3Amaster)
[![codecov.io](https://codecov.io/github/apache/cordova-create/coverage.svg?branch=master)](https://codecov.io/github/apache/cordova-create?branch=master)

This module is used for creating Cordova style projects. It also incudes support for [Cordova App Templates](http://cordova.apache.org/docs/en/latest/guide/cli/template.html). It can fetch templates from npm and git.

## Usage

```js
const create = require('cordova-create');
await create(dest, opts);
```

### Parameters

#### `dest`

_Required_. Path to the destination where the project will be created. Must be an empty dir if it exists.

#### `opts`

_Optional_. Supports following properties.

```js
{
    // Attributes to be set in package.json & config.xml
    id: String,
    name: String,
    version: String,

    // The path/url/package-name to the template that should be used
    template: String,

    // An EventEmitter instance that will be used for logging purposes
    // (actually it only needs to implement a compatible `emit` method)
    events: EventEmitter
}
```

---
_Source: https://npm.io/package/cordova-create · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
