# remove-native-comments

> 删除原生html,js,css,json等文件的注释内容及打印代码并提供压缩功能

Latest version **1.0.7** (published 2022-02-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install remove-native-comments
pnpm add remove-native-comments
yarn add remove-native-comments
bun add remove-native-comments
```

## 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.7 |
| Published | 2022-02-10 |
| First published | 2022-02-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gaoqiang |
| Maintainers | gaoqiang |
| Keywords | 删除注释, 删除原生注释, 删除html原生注释, 删除js原生注释打印, 删除css注释, 删除json注释 |

## Links

- npm: https://www.npmjs.com/package/remove-native-comments
- npm.io page: https://npm.io/package/remove-native-comments

## Dependencies (1)

- [compressing](https://npm.io/package/compressing.md) ^1.5.1

## Recent versions

- 1.0.7 (latest) — 2022-02-10
- 1.0.6 — 2022-02-10
- 1.0.4 — 2022-02-10
- 1.0.3 — 2022-02-10
- 1.0.2 — 2022-02-10
- 1.0.1 — 2022-02-10
- 1.0.0 — 2022-02-09

## README

# remove-native-comments

> 引入介绍（Introduction）

可以去掉非webpack的原生html项目中html，js，css，json中的各种注释和打印语句，做到页面安全，且不影响开发，开发阶段保留注释 

> 安装方式

```javascript
npm install remove-native-comments -D
```
> 使用步骤（how to use）

```html
使用步骤

第一、 package.json 配置启动命令
# 例如
"scripts": {
    "zip": "node node_modules/remove-native-comments/index.js"
}
# 如果需要自定义压缩之后的文件名 可以再添加一个参数
"scripts": {
    "zip": "node node_modules/remove-native-comments/index.js name=xxxx"
}
# name的值为要生成后的文件夹及压缩包的名称


第二、 执行命令
# npm run zip
```

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