Y
Y
Yuri Kovlenko2017-07-24 07:35:45
JavaScript
Yuri Kovlenko, 2017-07-24 07:35:45

How to determine js package version by file?

Good afternoon.
The following problem arose, there is a file compiled through grunt js with a N number of packages, for some there are banners with the version, for some not. How is it possible to determine what packages are there, and what their versions are (well, except for manually parsing the compressed js code, and comparing the differences with all versions of this package)?
PS There is only build result, package.json, bower.json are empty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2017-07-24
@bingo347

console.log(require('package-name/package.json').version);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question