Skip to content
/ y Public

An npm package like yes that lives in its package.json

License

Notifications You must be signed in to change notification settings

mgred/y

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

y

An npm package that works like yes, e.g. from GNU coreutils and lives entirly in its package.json.

Installation

Use your favourite package manager to install globally, e.g:

npm i -g @mgred/y

Or install from the repository:

npm run build
npm link

Usage

y [answer]

$ y
y
y
y
^C

From the repository, print yes:

$ npm start -- yes

Abort with Ctrl+C.

Use like: y | sudo apt upgrade.

License

The GPLv3 License (GPLv3)

Copyright (c) 2023 Marc Redemske <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

About

An npm package like yes that lives in its package.json

Resources

License

Stars

Watchers

Forks

Languages