const read = require('read').read;
const send = require('./send');
async function asyncMain()
{
const amount = await read({
prompt: "Amount: "
});
const password = await read({
prompt: "Password: ",
silent: true,
replace: "*" //optional, will print out an asterisk for every typed character
});
// console.log("Amount: " + amount);
// console.log("Your password: " + password);
Category Archives: JavaScript
Sending XRP with JavaScript
A right way to query password from a console in JavaScript
import * as readline from 'node:readline/promises';
import { stdin as input, stdout as output } from 'node:process';
import { Writable } from 'node:stream';
var mutableStdout = new Writable({
write: function(chunk, encoding, callback) {
if (!this.muted)
output.write(chunk, encoding);
callback();
}
});
mutableStdout.muted = false;
var rl = readline.createInterface({
input: input,
output: mutableStdout,
terminal: true
});
Conversion of S75 charts to GeoJSON with GDAL org2org utility.
The original S57 map consists of the following layers:
ogrinfo E:\temp\ENC_ROOT\US4CA11M\US4CA11M.000
INFO: Open of `E:\temp\ENC_ROOT\US4CA11M\US4CA11M.000' using driver `S57' successful. 1: DSID (None) 2: Point (Point) 3: Line (Line String) 4: Area (Polygon) 5: Meta (None)
So I was able to convert each layer separately one by one without errors:
ogr2ogr -f GeoJSON US1HA02M-Area.json E:\temp\ENC_ROOT\US1HA02M\US1HA02M.000 Area -lco RFC7946=YES -skipfailures ogr2ogr -f GeoJSON US1HA02M-Point.json E:\temp\ENC_ROOT\US1HA02M\US1HA02M.000 Point -lco RFC7946=YES -skipfailures ogr2ogr -f GeoJSON US1HA02M-Line.json E:\temp\ENC_ROOT\US1HA02M\US1HA02M.000 Line -lco RFC7946=YES -skipfailures ogr2ogr -f GeoJSON US1HA02M-DSID.json E:\temp\ENC_ROOT\US1HA02M\US1HA02M.000 DSID -lco RFC7946=YES -skipfailures Warning 1: No SRS set on layer. Assuming it is long/lat on WGS84 ellipsoid ogr2ogr -f GeoJSON US1HA02M-Meta.json E:\temp\ENC_ROOT\US1HA02M\US1HA02M.000 Meta -lco RFC7946=YES -skipfailures Warning 1: No SRS set on layer. Assuming it is long/lat on WGS84 ellipsoid
Setting up Vue.js development tools on Windows 10.
I installed Node.js and Vue.js cli with the following commands
npm install -g @vue/cli npm install -g @vue/cli-init
and a sample application with
vue init webpack-simple my-vue-app cd my-vue-app npm install npm run dev