[Pkg-javascript-devel] node-fn.name vs node-fn-name

Paul Wise pabs at debian.org
Thu Nov 5 09:37:13 GMT 2020


On Thu, 2020-11-05 at 07:17 +0200, Andrius Merkys wrote:

> I was aware of node-fn-name at the time I uploaded node-fn.name.
> However, due to my lack of experience with NodeJS I did not compare the
> packages to understand the difference of their APIs and functionality. I
> would love to deduplicate (maybe by removing node-fn.name which should
> have less reverse dependencies), but I need someone to confirm that
> these packages could be used interchangeably, or provide patching
> suggestions if APIs are different.

Based solely on the usage information in the README, their APIs are
compatible, so just changing from fn.name to fn-name or vice versa in
the require() call will be enough to switch between them.

I'm not sure which one is better, but fn-name started earlier and has
more recent commits than fn.name.

The fn-name README inspires more confidence in me since the example
uses const instead of var to store the name finding function. I don't
know much about JavaScript nor NodeJS, but my intuition says const
seems to be more correct for importing functions. StackOverflow agrees:

https://stackoverflow.com/questions/55948935/const-vs-var-in-nodejs-require-statement

I noticed that neither fn-name nor fn-name have any reverse
dependencies in Debian so perhaps they should just both be removed?

I also noticed that fn-name is outdated in Debian compared to upstream.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20201105/506b6132/attachment.sig>


More information about the Pkg-javascript-devel mailing list