GithubHelp home page GithubHelp logo

m4yt / proglistr.js Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 15 KB

A simple node.js library for listing installed programs.

Home Page: https://www.npmjs.com/package/proglistr

License: MIT License

JavaScript 100.00%

proglistr.js's Introduction

ProgListr.js

A simple node.js library for listing installed programs. Developed for StatusPilatus.


Getting started

One simple solution for listing all your installed programs. No npm dependencies. Currently functioning with Windows, Mac and Linux.

Installation

To install this library, simply run npm install proglistr.

Usage

There is only one function, called getProgs(). This function is asynchronous and returns a promise with an array of objects. Every object represents a program, with a name and a version (and architecture if ran on linux). Add the library to your program by putting const plistr = require('proglistr');. From there you can call the function as plistr.getProgs() and then do with the data as you please.


License

MIT, see LICENSE for details.

proglistr.js's People

Contributors

m4yt avatar jelmerro avatar

Stargazers

Barry Buck avatar  avatar

Watchers

James Cloos avatar  avatar

proglistr.js's Issues

Incomplete list on Linux

I have the following problem when running ProgListr on Linux:
The output stops at a certain point because the maxBuffer is exceeded.
Error: stdout maxBuffer exceeded is the Error it produces,
but it somehow also resolves the Promise.
For fixes, see this stackoverflow https://stackoverflow.com/a/23429654

Incorrectly parsed multiline programs

Sometimes a program with a long version number on Linux uses multiple lines to display a program.
These programs usually end up with an incorrect name, version and arch. Example of a broken program: { name: '1.2', version: '', arch: '4-9' }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.