# svg-captcha-npmzw

> 仿写 svg-captcha 验证码

Latest version **1.0.0** (published 2023-06-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install svg-captcha-npmzw
pnpm add svg-captcha-npmzw
yarn add svg-captcha-npmzw
bun add svg-captcha-npmzw
```

## 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.0 |
| Published | 2023-06-28 |
| First published | 2023-06-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | npmzw |

## Links

- npm: https://www.npmjs.com/package/svg-captcha-npmzw
- npm.io page: https://npm.io/package/svg-captcha-npmzw

## Recent versions

- 1.0.0 (latest) — 2023-06-28

## README

# 图片验证码 

仿写 svg-captcha 验证码

## 下载依赖

`npm i svg-captcha-npmzw`

## 导入依赖

`const captcha = require("svg-captcha-npmzw");`

## 本地运行查看效果

`node test.js`

## 具体使用示例

```
// 一、导入官方http模块
const http = require("http");
// 二、导入验证码模块
// const captcha = require("./index");
const captcha = require("svg-captcha-npmzw");
// 三、创建服务器
const server = http.createServer((req, res) => {
  // 1.设置请求头
  res.setHeader("content-type", "text/html;charset=utf-8");
  // 2.调用方法
  let temp = captcha.create();
  // 3.服务器响应
  res.end(temp.data);
});

// 四、监听端口
server.listen(3004, () => {
  console.log("服务启动成功，http://localhost:3004");
});
```

## 查看源码：
[https://unpkg.com/browse/svg-captcha-npmzw/](https://unpkg.com/browse/svg-captcha-npmzw/)

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