Mit nur Client-Space-Tools scheint es ziemlich einfach, können Sie nicht. npm doc positiv dazu:
A package is:
a) a folder containing a program described by a package.json file
b) a gzipped tarball containing (a)
c) a url thatresolves to (b)
d) a <name>@<version> that is published on theregistry with (c)
e) a <name>@<tag> that points to (d)
f) a <name>that has a "latest" tag satisfying (e)
g) a git url that, when cloned,results in (a).
[...]
Sie benötigen eine package.json Datei im Root Ihres Projektes haben viel mit npm von irgendetwas zu tun. Das ist im Grunde die ganze Schnittstelle.
source : npm doc
Wie Sie sehen können, machen sie es wirklich erforderlich ist klar ein package.json
für etwas zu arbeiten.
Sie müssten in den Code einarbeiten, für ein Ergebnis, das nicht wiederverwendbar wäre. Wenn es das ist, was Sie wollen, machen Sie es bitte in Ihrer Frage klar, damit andere verstehen, warum es notwendig ist.