PHP 8.2.30
Preview: info Size: 310 B
/opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules.bundled/ajv/scripts/info

#!/opt/alt/alt-nodejs8/root/usr/bin/node

'use strict';

var fs = require('fs');
var name = process.argv[2] || '.';
var property = process.argv[3] || 'version';
if (name != '.') name = 'node_modules/' + name;
var json = JSON.parse(fs.readFileSync(name + '/package.json', 'utf8'));
console.log(json[property]);

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
62 B lrw-r--r-- 2021-09-28 10:29:29
Edit Download
1.75 KB lrw-r--r-- 2021-09-28 10:29:29
Edit Download
2.37 KB lrw-r--r-- 2021-09-28 10:29:29
Edit Download
310 B lrwxr-xr-x 2021-09-28 10:29:29
Edit Download
220 B lrwxr-xr-x 2021-09-28 10:29:29
Edit Download
868 B lrwxr-xr-x 2021-09-28 10:29:29
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).