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

Displays stack traces if an invalid color was entered #1

Open
jantimon opened this issue May 10, 2016 · 1 comment · May be fixed by #2
Open

Displays stack traces if an invalid color was entered #1

jantimon opened this issue May 10, 2016 · 1 comment · May be fixed by #2

Comments

@jantimon
Copy link

jantimon commented May 10, 2016

name-that-color "#12345"

versions/4.2.2/lib/node_modules/name-that-color/lib/index.js:6
console.log(chalk.magenta(process.argv[2]) + ' name is ' + chalk.cyan(ntc.name(oneColor(process.argv[2]).hex())[1]));
                                                                                                      ^
TypeError: oneColor(...).hex is not a function
    at Object.<anonymous> (versions/4.2.2/lib/node_modules/name-that-color/lib/index.js:6:106)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:136:18)
    at node.js:963:3
@jantimon
Copy link
Author

jantimon commented May 10, 2016

Oh never mind I forgot the last digit

jantimon added a commit to jantimon/name-that-color that referenced this issue May 10, 2016
@jantimon jantimon changed the title Doesn't work with node 4+ Displays stack traces if an invalid color was entered May 10, 2016
jantimon added a commit to jantimon/name-that-color that referenced this issue May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant