【文件属性】:
文件名称:node-osx-wallpaper:在 OS X 上获取或设置桌面壁纸
文件大小:63KB
文件格式:ZIP
更新时间:2021-06-14 20:35:01
JavaScript
node-osx-壁纸
使用二进制文件在 OS X 上获取或设置桌面壁纸
安装
$ npm install --save osx-wallpaper
用法
var osxWallpaper = require ( 'osx-wallpaper' ) ;
osxWallpaper . set ( 'unicorn.jpg' , function ( err ) {
console . log ( 'done' ) ;
} ) ;
osxWallpaper . get ( function ( err , imagePath ) {
console . log ( imagePath ) ;
//=> '/Users/sindresorhus/unicorn.jpg'
} ) ;
应用程序接口
.get(回调)
回调(错误,图像路径)
必需的类型: function
图像路径
类
【文件预览】:
node-osx-wallpaper-master
----.jshintrc(170B)
----.gitignore(13B)
----wallpaper(38KB)
----package.json(705B)
----.travis.yml(98B)
----index.js(527B)
----test.js(544B)
----fixture.jpg(58KB)
----license(1KB)
----readme.md(1KB)
----.gitattributes(12B)
----.editorconfig(231B)