Spaces:
Running
Running
Download node_modules/@vue/cli-shared-utils/lib/pkg.js from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40vue/cli-shared-utils/lib/pkg.js
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/@vue/cli-shared-utils/lib/pkg.js
-
curl -L -o pkg.js https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40vue/cli-shared-utils/lib/pkg.js
252 Bytes
| const fs = require('fs') | |
| const path = require('path') | |
| const readPkg = require('read-pkg') | |
| exports.resolvePkg = function (context) { | |
| if (fs.existsSync(path.join(context, 'package.json'))) { | |
| return readPkg.sync({ cwd: context }) | |
| } | |
| return {} | |
| } | |