電子アプリケーションでユーザー名を出力する方法を知っています。そのようなもの:電子メールでユーザー名を出力する
const os = require('os')
const username = // the code or the username so that it can be displayed
document.write("The username is: " + username)
これは可能ですか?
電子アプリケーションでユーザー名を出力する方法を知っています。そのようなもの:電子メールでユーザー名を出力する
const os = require('os')
const username = // the code or the username so that it can be displayed
document.write("The username is: " + username)
これは可能ですか?
あなたはボックスのうち
const username = require('username');
username().then(username => {
console.log(username);
//=> 'sindresorhus'
});
[Find OS username in No deJS](https://stackoverflow.com/questions/40424298/find-os-username-in-nodejs) –