is-sketchfile 检查文件是否为文件。 安装 $ npm install --save is-sketchfile 用法 var isSketchFile = require ( 'is-sketchfile' ) isSketchFile ( 'something.sketch' ) . then ( function ( isValid ) { console . log ( isValid , 'return true or false.' ) } ) . catch ( function ( err ) { console . e