<commit_before>#!/usr/bin/env node

var program = require('commander');
var shell   = require('shelljs');
var Table   = require('easy-table')

program
  .version('0.0.1')
  .option('-a, --alternate', 'Make the display a list not a table')
  .parse(process.argv);

var mainPackage = require( shell.pwd().stdout + '/package.json' );

var t = new Table

for( var depName in mainPackage.dependencies ){

    var dep = require(shell.pwd().stdout + "/node_modules/" + depName + '/package.json');

    if( program.alternate ){
        console.log( depName );
        console.log( "Source Code : " + dep.homepage );
        console.log( "License : \n" );
    } else {
        t.cell('Library Name', dep.name)
        t.cell('License Type', dep.license ? dep.license : 'NA')
        t.cell('Library Url', dep.homepage)
        t.newRow()
    }



}

console.log(t.toString())
<commit_msg>change to the list view<commit_after>#!/usr/bin/env node

var program = require('commander');
var shell   = require('shelljs');
var Table   = require('easy-table')

program
  .version('0.0.1')
  .option('-a, --alternate', 'Make the display a list not a table')
  .parse(process.argv);

var mainPackage = require( shell.pwd().stdout + '/package.json' );

var t = new Table

for( var depName in mainPackage.dependencies ){

    var dep = require(shell.pwd().stdout + "/node_modules/" + depName + '/package.json');

    if( program.alternate ){
        console.log( depName );
        console.log( "Source Code : " + dep.homepage );
        console.log( "License Type : " + dep.license );
        console.log( "License Url : \n" );
    } else {
        t.cell('Library Name', dep.name)
        t.cell('License Type', dep.license ? dep.license : 'NA')
        t.cell('Library Url', dep.homepage)
        t.newRow()
    }



}

console.log(t.toString())

{'fraction_non_alphanumeric': 0.1701312910284464, 'fraction_numerical': 0.0032822757111597373, 'mean_word_length': 2.810416666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3162913', 'n_tokens_mistral': 609, 'n_tokens_neox': 594, 'n_words': 147}