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

seeli

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seeli - npm Package Compare versions

Comparing version 15.0.0 to 15.1.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [15.1.0](https://github.com/esatterwhite/node-seeli/compare/v15.0.0...v15.1.0) (2023-12-31)
### Features
* **command**: add support for input filter for non-interactive [a21e065](https://github.com/esatterwhite/node-seeli/commit/a21e065b1f3f74beeb44b15783d3050c1d1af053) - Eric Satterwhite
# [15.0.0](https://github.com/esatterwhite/node-seeli/compare/v14.1.1...v15.0.0) (2023-12-04)

@@ -2,0 +9,0 @@

8

lib/command/index.js

@@ -240,3 +240,7 @@ 'use strict'

const value = hasOwn(this.parsed, key) ? this.parsed[key] : flag.default
object.set(this.parsed, key, value)
object.set(
this.parsed
, key
, typeof flag.filter === 'function' ? flag.filter(value, this.parsed) : value
)
}

@@ -652,3 +656,3 @@ return this.parsed

arg.validate = opts.validate ? opts.validate.bind(null, answers) : undefined
arg.filter = opts.filter ? opts.filter.bind(null, answers) : undefined
arg.filter = opts.filter ? opts.filter.bind(null) : undefined
arg.transformer = opts.transformer ? opts.transformer : transform.bind(arg)

@@ -655,0 +659,0 @@ return arg

{
"name": "seeli",
"version": "15.0.0",
"version": "15.1.0",
"description": "Object oriented, flexible CLI tools",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -117,30 +117,30 @@ [![Test + Release](https://github.com/esatterwhite/node-seeli/actions/workflows/release.yml/badge.svg)](https://github.com/esatterwhite/node-seeli/actions/workflows/release.yml)

* [API](#api)
* [Seeli.run( )](#seelirun-)
* [Seeli.list`<Array>`](#seelilistarray)
* [Seeli.use( name `<string>`, cmd `<Command>` )](#seeliuse-name-string-cmd-command-)
* [Seeli.bold( text `<string>`)](#seelibold-text-string)
* [Seeli.green( text `<string>`)](#seeligreen-text-string)
* [Seeli.blue( text `<string>`)](#seeliblue-text-string)
* [Seeli.red( text `<string>`)](#seelired-text-string)
* [Seeli.yellow( text `<string>`)](#seeliyellow-text-string)
* [Seeli.cyan( text `<string>`)](#seelicyan-text-string)
* [Seeli.magenta( text `<string>`)](#seelimagenta-text-string)
* [Seeli.redBright( text `<string>`)](#seeliredbright-text-string)
* [Seeli.blueBright( text `<string>`)](#seelibluebright-text-string)
* [Seeli.greenBright( text `<string>`)](#seeligreenbright-text-string)
* [Seeli.yellowBright( text `<string>`)](#seeliyellowbright-text-string)
* [Seeli.cyanBright( text `<string>`)](#seelicyanbright-text-string)
* [Seeli.config( key `<string>`, value `<object>` )](#seeliconfig-key-string-value-object-)
* [Seeli.config( opts `<object>` )](#seeliconfig-opts-object-)
* [Seeli.config( key `<string>` )](#seeliconfig-key-string-)
* [Supported Confgurations](#supported-confgurations)
* [Package Configuration](#package-configuration)
* [Command( options `<object>` )](#command-options-object-)
* [Options](#options)
* [Flag Options](#flag-options)
* [Nested Flags](#nested-flags)
* [Auto Help](#auto-help)
* [Asyncronous](#asyncronous)
* [Progress](#progress)
* [Events](#events)
* [Seeli.run( )](#seelirun-)
* [Seeli.list`<Array>`](#seelilistarray)
* [Seeli.use( name `<string>`, cmd `<Command>` )](#seeliuse-name-string-cmd-command-)
* [Seeli.bold( text `<string>`)](#seelibold-text-string)
* [Seeli.green( text `<string>`)](#seeligreen-text-string)
* [Seeli.blue( text `<string>`)](#seeliblue-text-string)
* [Seeli.red( text `<string>`)](#seelired-text-string)
* [Seeli.yellow( text `<string>`)](#seeliyellow-text-string)
* [Seeli.cyan( text `<string>`)](#seelicyan-text-string)
* [Seeli.magenta( text `<string>`)](#seelimagenta-text-string)
* [Seeli.redBright( text `<string>`)](#seeliredbright-text-string)
* [Seeli.blueBright( text `<string>`)](#seelibluebright-text-string)
* [Seeli.greenBright( text `<string>`)](#seeligreenbright-text-string)
* [Seeli.yellowBright( text `<string>`)](#seeliyellowbright-text-string)
* [Seeli.cyanBright( text `<string>`)](#seelicyanbright-text-string)
* [Seeli.config( key `<string>`, value `<object>` )](#seeliconfig-key-string-value-object-)
* [Seeli.config( opts `<object>` )](#seeliconfig-opts-object-)
* [Seeli.config( key `<string>` )](#seeliconfig-key-string-)
* [Supported Confgurations](#supported-confgurations)
* [Package Configuration](#package-configuration)
* [Command( options `<object>` )](#command-options-object-)
* [Options](#options)
* [Flag Options](#flag-options)
* [Nested Flags](#nested-flags)
* [Auto Help](#auto-help)
* [Asyncronous](#asyncronous)
* [Progress](#progress)
* [Events](#events)

@@ -291,3 +291,3 @@ <!-- vim-markdown-toc -->

**validate** | `false` | `function` | receives user input and should return true if the value is **valid**, and an error message (String) otherwise. If false is returned, a default error message is provided.
**filter** | `false` | `function` | **interactive mode only** Receives the user input and return the filtered value to be used **inside** the program. The value returned will be added to the Answers hash.
**filter** | `false` | `function` | Receives the user input and return the filtered value to be used **inside** the program. The value returned will be added to the Answers hash.

@@ -294,0 +294,0 @@ #### Nested Flags

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