# vue-component-dir

> shortcut method for creating vue files in specific directory structure.

Latest version **1.0.1** (published 2020-03-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-component-dir
pnpm add vue-component-dir
yarn add vue-component-dir
bun add vue-component-dir
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-03-27 |
| First published | 2020-03-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | vaasav kumar |
| Maintainers | vaasav |
| Keywords | vue, create, component, create, file, CLI, CLI, vue, component, npm |

## Links

- npm: https://www.npmjs.com/package/vue-component-dir
- Repository: https://github.com/vaasav-kumar/create-component
- Homepage: https://github.com/vaasav-kumar/create-component#readme
- Issues: https://github.com/vaasav-kumar/create-component/issues
- npm.io page: https://npm.io/package/vue-component-dir

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-03-27
- 1.0.0 — 2020-03-27

## README

# create-component
shortcut method for creating vue components in specific directory structure.

## Installation

```bash
npm --save install vue-component-dir
```
## Usage
Open terminal and enter the command
```bash
node_modules/vue-component-dir/create.js filename filePath

example:
node_modules/vue-component-dir/create.js new-component-name src/components
```
In the above CLI, the 'new-component' component will be created in 'src/components' directory.

```
another example:
node_modules/vue-component-dir/create.js resume-generator src/components/resume
```
In the above CLI, if 'resume' folder is not available under 'src/components', we will create 'resume' folder and place 'resume-generator.vue' file in specified folder.

## Result
```html
<template>
	<div id="resume">
		
	</div>
</template>

<script>
	export default {
		name: 'resume',
		data () {
			return {

			}
		},
		created () {

		},
		mounted () {

		},
		computed: {

		},
		watch: {

		},
		methods: {

		}
	}
</script>
```

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