-
-
Save rosen-vladimirov/f9d9919ba9a413679af7 to your computer and use it in GitHub Desktop.
Sample application using mobile-cli-lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var common = require("mobile-cli-lib"); | |
common.fs.getFileSize("D:\\Work\\t.txt") | |
.then(function (result) { | |
console.log("File size is: " + result); | |
return result; | |
}, function (err) { | |
console.log("Error happened:"); | |
console.log(err); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "sample_mobile_cli_lib_app", | |
"version": "0.0.1", | |
"description": "This application shows how to use mobile-cli-lib as a separate npm package.", | |
"main": "index.js", | |
"dependencies": { | |
"mobile-cli-lib": "0.4.0" | |
}, | |
"keywords": [ | |
"mobile-cli-lib", | |
"node", | |
"npm", | |
"test", | |
"app" | |
], | |
"author": "Rosen Vladimirov <rossen_vl@abv.bg>", | |
"license": "ISC" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment