get-gravatar:从标识符(例如电子邮件)中获取Gravatar图像

时间:2021-05-26 07:59:05
【文件属性】:
文件名称:get-gravatar:从标识符(例如电子邮件)中获取Gravatar图像
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 07:59:05
JavaScript 得到凹版 从标识符(例如电子邮件)中获取图像 安装 $ npm install get-gravatar 用法 const { promises : fs } = require ( 'fs' ) ; const getGravatar = require ( 'get-gravatar' ) ; ( async ( ) => { const image = await getGravatar ( 'sindresorhus@gmail.com' , { size : 200 } ) ; await fs . writeFile ( 'sindre.png' , image ) ; console . log ( 'Successfully downloaded the Gravatar image' ) ; } ) ( ) ; 原料药 getGravatar(标识符,选项?)
【文件预览】:
get-gravatar-main
----index.test-d.ts(217B)
----.gitattributes(19B)
----.github()
--------workflows()
----test.js(226B)
----license(1KB)
----index.d.ts(1KB)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(238B)
----readme.md(2KB)
----package.json(829B)

网友评论