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

csproj-integrity

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csproj-integrity

Check csproj file (Visual Studio) integrity

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
412
increased by20.47%
Maintainers
2
Weekly downloads
 
Created
Source

csproj-integrity

Build Status dependencies Status


Node library for check the visual studio solution integrity parsing the csproj file.

You can use it with Grunt Plugin grunt-csproj-integrity

Install

    npm install csproj-integrity --save-dev

API

checkFiles

This task takes an array of path and check if all files are included in the .csproj file.

Arguments: [string / array] - the globby path of files to check.

Output JSON

{
    "status": [string] ["success", "error", "fail"],
    "message": [string],
    "data": [object]
}

In case of success the data is empty.

Usage example

const csproj = require('csproj-integrity');

csproj
.checkFiles(['Views/**/*.cshtml', 'Controllers/**/*.cs'])
.then(res => {
    let response = JSON.parse(res);

    // your code
})
.catch(err => {
    console.log(err.message);
});

checkIntegrity

This task check if all file included in the csproj file actually exist.

No arguments.

Output JSON

{
    "status": [string] ["success", "error", "fail"],
    "message": [string],
    "data": [object]
}

If case of success the data is all file founded in csproj file.

Usage example

const csproj = require('csproj-integrity');


csproj
.checkIntegrity()
.then(res => {
    let response = JSON.parse(res);

    // your code
})
.catch(err => {
    console.log(err.message);
});

TO DO

  • Unit test with TAPE
  • Check of duplicated
  • Gulp plugin
  • Rewrite using async / await

Keywords

FAQs

Package last updated on 04 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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