svg-captcha
Advanced tools
Comparing version 1.3.11 to 1.3.12
license: free | ||
website: http://www.moorstation.org/typoasis/designers/gemnew/home.htm |
@@ -0,0 +0,0 @@ 1.3.11 / 2017-08-23 |
@@ -0,0 +0,0 @@ /** |
module.exports = require('./lib'); |
@@ -0,0 +0,0 @@ 'use strict'; |
'use strict'; | ||
module.exports = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; |
@@ -65,3 +65,3 @@ 'use strict'; | ||
.join(''); | ||
const start = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">`; | ||
const start = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" viewBox="0,0,${width},${height}">`; | ||
const xml = `${start}${bgRect}${paths}</svg>`; | ||
@@ -68,0 +68,0 @@ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ The MIT License (MIT) |
{ | ||
"name": "svg-captcha", | ||
"version": "1.3.11", | ||
"version": "1.3.12", | ||
"description": "generate svg captcha in node.js or express.js", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"jest": "^20.0.4", | ||
"jest": "^21.1.0", | ||
"jest-environment-node-debug": "^2.0.0", | ||
@@ -41,0 +41,0 @@ "xo": "^0.18.2" |
![svg-captcha](media/header.png) | ||
# svg验证码 [![Build Status](https://travis-ci.org/lemonce/svg-captcha.svg?branch=master)](https://travis-ci.org/steambap/svg-captcha) | ||
<div align="center"> | ||
在node.js中生成svg格式的验证码 | ||
[![Build Status](https://img.shields.io/travis/lemonce/svg-captcha/master.svg?style=flat-square)](https://travis-ci.org/lemonce/svg-captcha) | ||
[![NPM Version](https://img.shields.io/npm/v/svg-captcha.svg?style=flat-square)](https://www.npmjs.com/package/svg-captcha) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/svg-captcha.svg?style=flat-square)](https://www.npmjs.com/package/svg-captcha) | ||
</div> | ||
> 在node.js中生成svg格式的验证码 | ||
## Translations | ||
@@ -16,3 +22,5 @@ [English](README.md) | ||
## 安装 | ||
> npm install --save svg-captcha | ||
``` | ||
npm install --save svg-captcha | ||
``` | ||
@@ -19,0 +27,0 @@ ## 使用方法 |
![svg-captcha](media/header.png) | ||
# svg captcha [![Build Status](https://travis-ci.org/lemonce/svg-captcha.svg?branch=master)](https://travis-ci.org/steambap/svg-captcha) | ||
<div align="center"> | ||
generate svg captcha in node.js | ||
[![Build Status](https://img.shields.io/travis/lemonce/svg-captcha/master.svg?style=flat-square)](https://travis-ci.org/lemonce/svg-captcha) | ||
[![NPM Version](https://img.shields.io/npm/v/svg-captcha.svg?style=flat-square)](https://www.npmjs.com/package/svg-captcha) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/svg-captcha.svg?style=flat-square)](https://www.npmjs.com/package/svg-captcha) | ||
</div> | ||
> generate svg captcha in node.js | ||
## Translations | ||
@@ -16,3 +22,5 @@ [中文](README_CN.md) | ||
## install | ||
> npm install --save svg-captcha | ||
``` | ||
npm install --save svg-captcha | ||
``` | ||
@@ -19,0 +27,0 @@ ## usage |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
100644
120
1