extract-opts - Extract the options and callback from a function's arguments easily

  •        33

Extract the options and callback from a function's arguments easily



eachr : ^3.2.0
editions : ^1.1.1
typechecker : ^4.3.0



Related Projects

minimist - parse argument options

  •    Javascript

This module is the guts of optimist's argument parser without all the fanciful decoration.Return an argument object argv populated with the array arguments from args.



A simple argument parser. Originally written by Robert C. Martin and ported to .NET by me. It is developed in C#.

detective - Find all calls to require() no matter how deeply nested using a proper walk of the AST

  •    Javascript

Give some source body src, return an array of all the require() calls with string arguments. The options parameter opts is passed along to detective.find().

co - The ultimate generator based flow-control goodness for nodejs (supports thunks, promises, etc)

  •    Javascript

Generator based control flow goodness for nodejs and the browser, using promises, letting you write non-blocking code in a nice-ish way.co@4.0.0 has been released, which now relies on promises. It is a stepping stone towards the async/await proposal. The primary API change is how co() is invoked. Before, co returned a "thunk", which you then called with a callback and optional arguments. Now, co() returns a promise.

kotlin-argparser - Easy to use and concise yet powerful and robust command line argument parsing for Kotlin

  •    Kotlin

This is a library for parsing command-line arguments. It can parse both options and positional arguments. It aims to be easy to use and concise yet powerful and robust. An instance of MyArgs will represent the set of parsed arguments. Each option and positional argument is declared as a property that delegates through a delegate factory method on an instance of ArgParser.

nomnom - [UNMAINTAINED] Option parser for node with generated usage and commands

  •    Javascript

nomnom is an option parser for node. It noms your args and gives them back to you in a hash. Nomnom supports args like -d, --debug, --no-debug, --file=test.txt, --file test.txt, -f test.txt, -xvf, and positionals. Positionals are arguments that don't fit the -a or --atomic format and aren't attached to an option.

instagram-node - NodeJS driver for the instagram API

  •    Javascript

Instagram uses the standard oauth authentication flow in order to allow apps to act on a user's behalf. Therefore, the API provides two convenience methods to help you authenticate your users. The first, get_authorization_url, can be used to redirect an unauthenticated user to the instagram login screen based on a redirect_uri string and an optional options object containing an optional scope array and an optional state string. The second method, authorize_user, can be used to retrieve and set an access token for a user, allowing your app to act fully on his/her behalf. This method takes three parameters: a response_code which is sent as a GET parameter once a user has authorized your app and instagram has redirected them back to your authorization redirect URI, a redirect_uri which is the same one supplied to get_authorization_url, and a callback that takes two parameters err and result. err will be populated if and only if the request to authenticate the user has failed for some reason. Otherwise, it will be null and response will be populated with a JSON object representing Instagram's confirmation reponse that the user is indeed authorized. See instagram's authentication documentation for more information. Below is an example of how one might authenticate a user within an ExpressJS app.

async - Async utilities for node and the browser

  •    Javascript

Async is a utility module which provides straight-forward, powerful functions for working with asynchronous JavaScript. Although originally designed for use with Node.js and installable via npm i async, it can also be used directly in the browser.

argh - Rust derive-based argument parsing optimized for code size

  •    Rust

The public API of this library consists primarily of the FromArgs derive and the from_env function, which can be used to produce a top-level FromArgs type from the current program's commandline arguments. Switches, like jump, are optional and will be set to true if provided.

argh - Argh! A minimalist argument handler.

  •    C++

If you're writing a highly-sophisticated command line tool, then Boost.Program_options and its kind might give you many advanced options. However, if you need to get up and running quickly, effectively and with minimal fuss, give the single header-file argh a try.

xtend - extend like a boss

  •    Javascript

xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.

getopts - Node.js CLI arguments parser

  •    Javascript

Getopts is a Node.js CLI arguments parser. It's designed closely following the Utility Syntax Guidelines so that your programs behave like typical UNIX utilities effortlessly and without sacrificing developer experience. Use getopts to parse the command-line arguments passed to your program.

gray-matter - Smarter yaml front matter parser, used by metalsmith, gatsby, netlify, assemble, mapbox-gl, phenomic, and many others

  •    Javascript

Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and many other projects. Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

clap - A full featured, fast Command Line Argument Parser for Rust

  •    Rust

It is a simple-to-use, efficient, and full-featured library for parsing command line arguments and subcommands when writing console/terminal applications. clap is used to parse and validate the string of command line arguments provided by a user at runtime. You provide the list of valid possibilities, and clap handles the rest. This means you focus on your applications functionality, and less on the parsing and validating of arguments.

fastify-nextjs - React server side rendering support for Fastify with Next

  •    Javascript

React server-side rendering support for Fastify with Next.js framework. Since Next.js needs some time to be ready on the first launch, you must declare your routes inside the after callback, after you registered the plugin. The plugin will expose the next API in Fastify that will handle the rendering for you.

rar.js - Pure-JavaScript RAR reader using AJAX, File API & local access

  •    TypeScript

rar.js provides a pure javascript implementation of the rar format, allowing you to extract or manipulate packed data client-side and server-side. Multiple inputs are supported: AJAX, File API (HTML5) and local disk (NodeJS).

Caporal.js - A full-featured framework for building command line applications (cli) with node.js

  •    Javascript

A full-featured framework for building command line applications (cli) with node.js, including help generation, colored output, verbosity control, custom logger, coercion and casting, typos suggestions, and auto-complete for bash/zsh/fish.Angled brackets (e.g. <item>) indicate required input. Square brackets (e.g. [env]) indicate optional input.

mercury-parser - 📜 Extract meaningful content from the chaos of a web page

  •    Javascript

Postlight's Mercury Parser extracts the bits that humans care about from any URL you give it. That includes article content, titles, authors, published dates, excerpts, lead images, and more. Mercury Parser powers the Mercury AMP Converter and Mercury Reader, a Chrome extension that removes ads and distractions, leaving only text and images for a beautiful reading view on any site.

commander.js - node.js command-line interfaces made easy

  •    Javascript

Options with commander are defined with the .option() method, also serving as documentation for the options. The example below parses args and options from process.argv, leaving remaining args as the program.args array which were not consumed by options.Short flags may be passed as a single arg, for example -abc is equivalent to -a -b -c. Multi-word options such as "--template-engine" are camel-cased, becoming program.templateEngine etc.

We have large collection of open source products. Follow the tags from Tag Cloud >>

Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.