Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vssln-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vssln-parser - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

dist/definitions/index.d.ts

@@ -31,3 +31,3 @@ /// <reference path="../_references.d.ts" />

/// <reference path="../_references.d.ts" />
export declare function parse(stream: any, callback: any): void;
declare var vssln: any;

@@ -34,0 +34,0 @@ export declare const ProjectTypeMappings: {

"use strict";
var expect = require('chai').expect;
var fs = require('fs');
var parse = require("../../").parse;
describe('Read from stream', function () {
var vsslnparse = require("../../");
describe('Read from string', function () {
var solution;
before(function (done) {
var text = fs.readFileSync("dist/test/test.sln", "utf8");
parse(text, function (result) {
vsslnparse(text, function (result) {
solution = result;

@@ -26,2 +26,2 @@ done();

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlYWRGcm9tRmlsZVRlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFHQSxJQUFJLE1BQU0sR0FBc0IsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDLE1BQU0sQ0FBQztBQUN2RCxJQUFJLEVBQUUsR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDdkIsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLEtBQUssQ0FBQztBQUVwQyxRQUFRLENBQUMsa0JBQWtCLEVBQUU7SUFDekIsSUFBSSxRQUF3QixDQUFDO0lBQzdCLE1BQU0sQ0FBQyxVQUFBLElBQUk7UUFDUCxJQUFNLElBQUksR0FBRyxFQUFFLENBQUMsWUFBWSxDQUFDLG9CQUFvQixFQUFFLE1BQU0sQ0FBQyxDQUFDO1FBQzNELEtBQUssQ0FBQyxJQUFJLEVBQUUsVUFB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vamVjdHMuZmlsdGVyKHAgPT4gISFwLnByb2plY3REZXBlbmRlbmNpZXMpO1xyXG4gICAgICAgIGV4cGVjdChwcm9qZWN0c1dpdGhEZXBlbmRlbmNpZXMubGVuZ3RoKS50by5ncmVhdGVyVGhhbigwKTtcclxuICAgIH0pO1xyXG59KTtcclxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
"use strict";
var expect = require('chai').expect;
var fs = require('fs');
var parse = require("../../").parse;
var vsslnparse = require("../../");
describe('Read from stream', function () {

@@ -9,3 +9,3 @@ var solution;

var stream = fs.createReadStream("dist/test/test.sln");
parse(stream, function (result) {
vsslnparse(stream, function (result) {
solution = result;

@@ -27,2 +27,2 @@ done();

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlYWRGcm9tU3RyZWFtVGVzdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBLElBQUksTUFBTSxHQUFzQixPQUFPLENBQUMsTUFBTSxDQUFDLENBQUMsTUFBTSxDQUFDO0FBQ3ZELElBQUksRUFBRSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN2QixJQUFJLEtBQUssR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUMsS0FBSyxDQUFDO0FBRXBDLFFBQVEsQ0FBQyxrQkFBa0IsRUFBRTtJQUN6QixJQUFJLFFBQXdCLENBQUM7SUFDN0IsTUFBTSxDQUFDLFVBQUEsSUFBSTtRQUNQLElBQU0sTUFBTSxHQUFHLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO1FBQ3pELEtBQUssQ0FBQyxNQUFNLEVBQUUsVUFBQSxNQUFNO1lBQ2hCLFFBQVEsR0FBRyxNQUFNLENBQUM7WUFDbEIsSUFBSSxFQUFFLENBQUM7UUFDWCxDQUFDLENBQUMsQ0FBQztJQUNQLENBQUMsQ0FBQyxD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5ncmVhdGVyVGhhbigwKTtcclxuICAgIH0pO1xyXG59KTtcclxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
///<reference path="../_references.ts"/>
"use strict";
var vssln = require("./dist/js/Reader");
function parse(stream, callback) {
module.exports = function (stream, callback) {
var reader = new vssln.Reader(stream, callback);
reader.read();
}
exports.parse = parse;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdDQUF3Qzs7QUFFeEMsSUFBSSxLQUFLLEdBQUcsT0FBTyxDQUFDLGtCQUFrQixDQUFDLENBQUM7QUFDeEMsZUFBc0IsTUFBTSxFQUFFLFFBQVE7SUFDbEMsSUFBSSxNQUFNLEdBQUcsSUFBSSxLQUFLLENBQUMsTUFBTSxDQUFDLE1BQU0sRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNoRCxNQUFNLENBQUMsSUFBSSxFQUFFLENBQUM7QUFDbEIsQ0FBQztBQUhlLGFBQUssUUFHcEIsQ0FBQSIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLzxyZWZlcmVuY2UgcGF0aD1cIi4uL19yZWZlcmVuY2VzLnRzXCIvPlxyXG5cclxudmFyIHZzc2xuID0gcmVxdWlyZShcIi4vZGlzdC9qcy9SZWFkZXJcIik7XHJcbmV4cG9ydCBmdW5jdGlvbiBwYXJzZShzdHJlYW0sIGNhbGxiYWNrKSB7XHJcbiAgICB2YXIgcmVhZGVyID0gbmV3IHZzc2xuLlJlYWRlcihzdHJlYW0sIGNhbGxiYWNrKTtcclxuICAgIHJlYWRlci5yZWFkKCk7XHJcbn1cclxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdDQUF3QztBQUV4QyxJQUFJLEtBQUssR0FBRyxPQUFPLENBQUMsa0JBQWtCLENBQUMsQ0FBQztBQUN4QyxNQUFNLENBQUMsT0FBTyxHQUFJLFVBQVMsTUFBTSxFQUFFLFFBQVE7SUFDdkMsSUFBSSxNQUFNLEdBQUcsSUFBSSxLQUFLLENBQUMsTUFBTSxDQUFDLE1BQU0sRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNoRCxNQUFNLENBQUMsSUFBSSxFQUFFLENBQUM7QUFDbEIsQ0FBQyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vPHJlZmVyZW5jZSBwYXRoPVwiLi4vX3JlZmVyZW5jZXMudHNcIi8+XHJcblxyXG52YXIgdnNzbG4gPSByZXF1aXJlKFwiLi9kaXN0L2pzL1JlYWRlclwiKTtcclxubW9kdWxlLmV4cG9ydHMgPSAgZnVuY3Rpb24oc3RyZWFtLCBjYWxsYmFjaykge1xyXG4gICAgdmFyIHJlYWRlciA9IG5ldyB2c3Nsbi5SZWFkZXIoc3RyZWFtLCBjYWxsYmFjayk7XHJcbiAgICByZWFkZXIucmVhZCgpO1xyXG59O1xyXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
{
"name": "vssln-parser",
"description": "Parses Visual Studio Solution (sln) files and returns information about projects and project dependencies.",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/mhusseini/vssln-parser",

@@ -6,0 +6,0 @@ "repository": {

@@ -10,8 +10,10 @@ # vssln-parser

## Usage
# From stream
```typescript
var parse = require('vssln-parser').parse;
var vsslnparse = require('vssln-parser');
var fs = require('fs');
const stream = fs.createReadStream("test.sln");
parse(stream, solution => {
vsslnparse(stream, solution => {
for(let project of solution.projects) {

@@ -28,3 +30,21 @@ console.log(project.name);

# From string
```typescript
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](http://en.wikipedia.org/wiki/MIT_License)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc