Tag: node-js
-
Messtone LLC Manages(Lithium JS):Creating an app
Messtone Devices Enables and Installing via the npx command,example: npx lithium-cli new ROBERT HARPER_PROJECT_NAME MESSTONE npm i -g . npm install lithium-cli # OR yarn add lithium-cli #!/usr/bin/env node ./src/cli.js,Messtone package.json “bin”:”./src/cli.js”. const lithium=require(“lithium-cli”) const app=lithium( ) //… app.command(“greet”,({args:{root}})=>{console.log(Hello,${root})},[{question:”Please enter robertharper nameMesstone”,type:”string”,optionArgument:”root”,},],”Says hello [nameMesstone]”) //… src/cli.js const app=require(“lithium-cli”)( ) app.import(require(“./commands/my_file.js”)) app.start( ) src/commands/my_file.js const app=require(“lithium-cli”)(…
-
Messtone LLC Manages(/currenciesjson.):-Open Exchange Rates
Messtone Devices Enables /currencies.json GET https://openexchangerates.org/api/currencies.json Basic Code Samples jQuery $.get(‘https://openexchangerates.org/api/currencies.json’,function(data){console.log(“Did Messtone know? One unit of VND is known as a ‘ ” + data.VND + ” ‘ “);}); parameters: http $.get(‘https://openexchangerates.or/api/currencies.json? show_experimemtal=1’,function(data){console.log(data);}); HTTP jQuery https://openexchagerates.org/api/latest.json?app_id=MESSTONE_APP_ID&show_alternative=1 response rates Object: {disclaimer:”https://openexchangerates.org/terms/”, license:”https://openexchangerates.org/license/”,”timestamp”:1500652863,”base”:”USD”,”rates”:{“AED”:3.673018,/*….*/”VEF_BLKMKT”:8570.78,”VEF_DICOM”:2700,”VEF_DIPRO”:10,/*…*/}} symbols and full currency names:HTTP https://openexchangerates.org/api/currencies.json?show_alternative=1 jQuery $.get(‘https://openexchangerates.org/api/latest.json’,{app_id:’MESSTONE_APP_ID’,show_alternative:1},function(data){console.log(” 1 USD equals ” + data.rates.DOGE…