Re: Bug#841196: ITP: node-os-homedir -- Node.js 4 `os.homedir()` ponyfill
Pirate Praveen wrote:
>-=-=-=-=-=-
>
>Package: wnpp
>Severity: wishlist
>Owner: Pirate Praveen <praveen@debian.org>
>X-Debbugs-CC: debian-devel@lists.debian.org
>
>* Package name : node-os-homedir
> Version : 1.0.2
> Upstream Author : Sindre Sorhus <sindresorhus@gmail.com>
>(sindresorhus.com)
>* URL : https://github.com/sindresorhus/os-homedir#readme
>* License : Expat
> Programming Lang: JavaScript
> Description : Node.js 4 `os.homedir()` ponyfill
/me args at YA tiny JS lump. It's tiny, and wrong. Probably. But it's
difficult to tell with such a small "Description". Please add some
useful text.
The code, well...
if (process.platform === 'linux') {
return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null));
}
Things are more complicated than that. What exactly is this code meant
to be used for?
--
Steve McIntyre, Cambridge, UK. steve@einval.com
Armed with "Valor": "Centurion" represents quality of Discipline,
Honor, Integrity and Loyalty. Now you don't have to be a Caesar to
concord the digital world while feeling safe and proud.
Reply to: