Socket
Socket
Sign inDemoInstall

nuget

Package Overview
Dependencies
116
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuget

Nuget library wrapper for Node.js


Version published
Weekly downloads
174
decreased by-32.3%
Maintainers
1
Install size
6.65 MB
Created
Weekly downloads
 

Readme

Source

nuget

Nuget library wrapper for Node.js.

This library uses Vinyl files for flexibility and Gulp compatibility.

Raw usage

nuget = require 'nuget'

nuget.pack 'package.nuspec', (err, nupkg_file) ->
  throw err if err

  nuget.push nupkg_file, (err) ->
    throw err if err

    console.log "Successfully pushed #{nupkg_file.path}"

Gulp usage

gulp = require 'gulp'
gutil = require 'gulp-util'
es = require 'event-stream'
nuget = require 'nuget'

nugetGulp = -> es.map (file, callback) ->
  nuget.pack file, (err, nupkg_file) ->
    return callback(err) if err
    nuget.push nupkg_file, (err) -> if err then gutil.log(err) else callback()

gulp.src('*.nuspec')
  .pipe(nugetGulp())

Configuring Nuget

Add the 'nuget.org' source to your Nuget config file

$ mono nuget.exe sources add -name "nuget.org" -source "https://www.nuget.org/api/v2/package"

Add the credentials for your source

$ mono nuget.exe setApiKey {YOUR_API_KEY} -source nuget.org

Keywords

FAQs

Last updated on 14 Jun 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc