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);
}
}
});