swc/scripts/util/useragent.js
강동윤 3a372ad29a
Move node-swc into the repository (#789)
The commit will help

 - Better testing
 - Preventing regression like #785.
 - **Implementing spack** (It requires access to neon api because of the plugin system)
2020-05-22 20:36:39 +09:00

17 lines
262 B
JavaScript

var pkg = require("../../package.json");
/**
* A custom user agent use for binary downloads.
*
* @api private
*/
module.exports = function() {
return [
"node/",
process.version,
" ",
"node-swc-installer/",
pkg.version
].join("");
};