# file-comment

> [![npm version](https://badge.fury.io/js/file-comment.svg)](https://badge.fury.io/js/file-comment) [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

Latest version **0.0.9** (published 2020-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-comment
pnpm add file-comment
yarn add file-comment
bun add file-comment
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2020-08-06 |
| First published | 2020-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | anminam |
| Maintainers | anminam |
| Keywords | file, comment, deleteline, annotation |

## Links

- npm: https://www.npmjs.com/package/file-comment
- npm.io page: https://npm.io/package/file-comment

## 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

- 0.0.9 (latest) — 2020-08-06
- 0.0.8 — 2020-08-06
- 0.0.7 — 2020-08-06
- 0.0.6 — 2020-08-06
- 0.0.5 — 2020-08-06
- 0.0.4 — 2020-08-06
- 0.0.3 — 2020-08-06
- 0.0.2 — 2020-08-06
- 0.0.1 — 2020-08-06

## README

# FileComment

[![npm version](https://badge.fury.io/js/file-comment.svg)](https://badge.fury.io/js/file-comment)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

- FileComment에서는 아래와 같은 기능을 할 수 있습니다.

1. 주석 달기
2. 함수 삭제

## 1. 주석달기

### Parameters

#### functionName: fileComment

| Name        |  Type  | script                       |
| ----------- | :----: | ---------------------------- |
| dir         | string | 검색할 Path                  |
| findStr     | string | 찾을 문자열                  |
| ext         | string | 확장자                       |
| addStr      | string | 넣을 주석                    |
| fileFilters | string | 검색할 파일명 대소문자 구분! |
| tabNum      | number | 추가할 탭 개수               |

### example

```js
const fc = require("file-comment");
const BASE_PATH = "/Users/anminam/Documents/program";

fc.fileComment({
  dir: BASE_PATH,
  findStr: "methodName: function(param1, param2) {",
  ext: ".js",
  addStr: `
    /**
        * 주석 설명 블라블라.
        * @method methodName
        * @category CategoryName
        * @param {string}  param1 is Foo
        * @param {Object}  param2 is FOO
        * @return {void}
    */
`,
  fileFilters: ["Core.js"],
  tabNum: 2,
});
```

## 2. 함수 삭제

### Parameters

#### functionName: removeFunction

| Name        |  Type  | script                       |
| ----------- | :----: | ---------------------------- |
| dir         | string | 검색할 Path                  |
| findStr     | string | 찾을 문자열                  |
| ext         | string | 확장자                       |
| fileFilters | string | 검색할 파일명 대소문자 구분! |

### example

```js
const fc = require("file-comment");
const BASE_PATH = "/Users/anminam/Documents/program";

fc.removeFunction({
  dir: BASE_PATH,
  findStr: "methodName: function() {",
  ext: ".js",
  // fileFilters: ["Core.js"],
});
```

## TEST

```
$ npm test
```

## License

fileComment is [MIT licensed](./LICENSE).

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