npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.anupackages.ndesk-options

v1.0.2

Published

Providing NDesk.Options by ANU because of missing original package in Unity PackageManager

Downloads

91

Readme

This repository is intended to provide NDesk.Options by package registry server for Unity PackageManager because of missing original package in Unity PackageManager and because it is used by some other ANU packages.


NDesk.Options

An option parser for C#.


| | | |--------------|----------------------| | CREATED BY: | Latency McLaughlin | | UPDATED: | 11/28/2018 | | FRAMEWORK: | .NETFramework 4.7.2, .NETStandard 2.0, .NETCore 2.1 (Latest) | | LANGUAGE: | C# (v7.3) | | OUTPUT TYPE: | API | | SUPPORTS: | Visual Studio 2017, 2015, 2013, 2012, 2010, 2008 | | TAGS: | .NET, NuGet, MyGet, API, C#, Visual Studio | | STATUS: | Build statusndesk-options MyGet Build Status | | LICENSE: | License | | VERSION: | GitHub release |

Navigation

  • Introduction
  • History
  • Solution
  • Usage
  • Installation
  • License

It takes advantage of C# features such as collection initializers and lambda delegates to provide a short, concise specification of the option names to parse, whether or not those options support values, and what to do when the option is encountered. It's entirely callback based:

See: http://www.ndesk.org/Options

var verbose = 0;
var show_help = false;
var names = new List<string> ();

var p = new OptionSet () {
  { "v|verbose", v => { if (v != null) ++verbose; } },
  { "h|?|help",  v => { show_help = v != null; } },
  { "n|name=",   v => { names.Add (v); } },
};
int          verbose   = 0;
bool         show_help = false;
List<string> names     = new List<string> ();

OptionSet p = new OptionSet ()
  .Add ("v|verbose", delegate (string v) { if (v != null) ++verbose; })
  .Add ("h|?|help",  delegate (string v) { show_help = v != null; })
  .Add ("n|name=",   delegate (string v) { names.Add (v); });

This library can be installed using NuGet found here.

MIT LICENSE