[v8.5.0 (latest stable)] Use npm dependency in asset script

There are examples on how to use bower package dependencies in asset script.

Are there also examples on how to use package dependencies from npm?
Ideally, requires would be resolved webpack-style without further configuration.