New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

canvas-compose-image

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-compose-image - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

36

compose.md

@@ -287,4 +287,40 @@ ## canvas 合成图片和文字

### npm 发布插件
1. npm init
2. 添加过滤文件
3. npm publish
- 黑名单模式:.npmignore 文件,没有.npmignore 情况下使用.gitignore 文件。(.gitignore 优先级会高些,小心)
跟.gitignore 一样
- 白名单模式:package.json 里边配置 files 字段
```
"files": [
"LICENSE",
"History.md",
"Readme.md",
"index.js",
"lib/"
]
```
- 白名单模式:pkg.files 配置 files 字段,只发布配置的文件或目录
```
{
"files": [
"index.js",
"lib"
]
}
```
#### 参考
[npm publish](https://cnodejs.org/topic/58b3aaea7872ea0864fee130)
[canvas.toDataURL() SecurityError](https://stackoverflow.com/questions/20424279/canvas-todataurl-securityerror)
[浏览器同源政策及其规避方法](http://www.ruanyifeng.com/blog/2016/04/same-origin-policy.html)
[canvas 问题浅析](https://juejin.im/entry/5865f38e570c3500688944c2)

10

package.json
{
"name": "canvas-compose-image",
"version": "0.0.2",
"version": "0.0.3",
"description": "compose.js",

@@ -19,3 +19,9 @@ "main": "index.js",

},
"homepage": "https://github.com/easterCat/canvas-compose-image#readme"
"homepage": "https://github.com/easterCat/canvas-compose-image#readme",
"files": [
"img/",
"demo/",
"compose.md",
"server/"
]
}

4

readme.md

@@ -82,5 +82,1 @@ ```

```
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc