Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update colors to maintained version #224

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ The default `prompt.message` is "prompt," the default `prompt.delimiter` is
": ", and the default `property.message` is `property.name`.
Changing these allows you to customize the appearance of your prompts! In
addition, prompt supports ANSI color codes via the
[colors module](https://github.com/Marak/colors.js) for custom colors. For a
[colors module](https://github.com/DABH/colors.js) for custom colors. For a
very colorful example:

``` js
var prompt = require("prompt");
var colors = require("colors/safe");
var colors = require("@colors/colors/safe");
//
// Setting these properties customizes the prompt.
//
Expand Down
2 changes: 1 addition & 1 deletion examples/color.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var prompt = require("../lib/prompt");
var colors = require("colors/safe");
var colors = require("@colors/colors/safe");
//
// Setting these properties customizes the prompt.
//
Expand Down
2 changes: 1 addition & 1 deletion lib/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var events = require('events'),
read = require('read'),
validate = require('revalidator').validate,
winston = require('winston'),
colors = require('colors/safe');
colors = require('@colors/colors/safe');

//
// Monkey-patch readline.Interface to work-around
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"dependencies": {
"async": "~0.9.0",
"colors": "1.4.0",
"@colors/colors": "1.5.0",
"read": "1.0.x",
"revalidator": "0.1.x",
"winston": "2.x"
Expand Down