Pirate Praveen wrote:
>-=-=-=-=-=-
>
>Package: wnpp
>Severity: wishlist
>Owner: Pirate Praveen <prav...@debian.org>
>X-Debbugs-CC: debian-devel@lists.debian.org
>
>* Package name    : node-os-homedir
>  Version         : 1.0.2
>  Upstream Author : Sindre Sorhus <sindresor...@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.                                st...@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 via email to