JSPM

vssln-parser

0.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 184
  • Score
    100M100P100Q83055F
  • License MIT

Parses Visual Studio Solution (sln) files and returns information about projects and project dependencies.

Package Exports

  • vssln-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vssln-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vssln-parser

Parses Visual Studio Solution (sln) files and returns information about projects and project dependencies.

Installation

Install package with NPM and add it to your development dependencies:

npm install vssln-parser --save-dev

Usage

From stream

var vsslnparse = require('vssln-parser');
var fs = require('fs');
    
const stream = fs.createReadStream("test.sln");
vsslnparse(stream, solution => {
    for(let project of solution.projects) {
        console.log(project.name);
        console.log(project.type);
        
        for(let dependency of project.projectDependencies) {
            console.log(dependency);
        }
    }
});

From string

var vsslnparse = require('vssln-parser');
var fs = require('fs');
    
const text = fs.readFileSync("test.sln", "utf-8");
vsslnparse(text, solution => {
    for(let project of solution.projects) {
        console.log(project.name);
        console.log(project.type);
        
        for(let dependency of project.projectDependencies) {
            console.log(dependency);
        }
    }
});

License

MIT License