<br>
<br>
On March 4, 2018 3:15:24 AM GMT+05:30, Simon McVittie <smcv@debian.org> wrote:<br>
>Am I right in saying that nodejs-handlebars (or libjs-handlebars or<br>
>some<br>
>such) contains both a command-line tool, handlebars(1) (or similar),<br>
>and<br>
>a library named handlebars for node.js?<br>
<br>
Yes. handlebars binary package includes /use/bin/handlebars and /usr/lib/nodejs/handlebars<br>
<br>
>If I understand correctly, best practice for such libraries in other<br>
>languages (mandatory for C and recommended for Python/Perl/etc.) is<br>
>that<br>
>the command-line tool is a separate binary package, for better<br>
>discoverability (and in the case of Python, to avoid causing random<br>
>breakage for users of the command-line tool if it originally used the<br>
>Python 2 interpreter and gets moved to Python 3 later).<br>
><br>
>For instance, src:tap.py builds python3-tap (the Python 3 library for<br>
>"import tap"), python-tap (the Python 2 library for "import tap") and<br>
>tappy (the tappy(1) command). If you did similar things for JavaScript,<br>
>you could have a handlebars package that depends on libjs-handlebars<br>
>and nodejs?<br>
<br>
Yes, that is what I did. But it was not acceptable to waldi, when discussing over irc. It was eventually accepted by another ftp master, but I think it better to clarify this situation in policy.<br>
<br>
I have provided links to irc discussion in my first mail to this thread.<br>
<br>
>    smcv<br>
<br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.