source: trip-planner-front/node_modules/mini-css-extract-plugin/node_modules/ajv/scripts/info@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 289 bytes
Line 
1#!/usr/bin/env node
2
3'use strict';
4
5var fs = require('fs');
6var name = process.argv[2] || '.';
7var property = process.argv[3] || 'version';
8if (name != '.') name = 'node_modules/' + name;
9var json = JSON.parse(fs.readFileSync(name + '/package.json', 'utf8'));
10console.log(json[property]);
Note: See TracBrowser for help on using the repository browser.