vssln-parser
v0.1.4
Published
Parses Visual Studio Solution (sln) files and returns information about projects and project dependencies.
Downloads
1,099
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);
}
}
});