Git Product home page Git Product logo

favicon-emoji's Introduction

๐ŸŒด favicon-emoji Standard - JavaScript Style Guide

Generate an awesome emoji-favicon

example at: deseat.me

Install

yarn

yarn global add favicon-emoji

npm

npm install --global favicon-emoji

Usage

Generate favicon

favicon-emoji --emoji โœจ

> โœจ Done, emoji favicon saved to ./favicon.ico

Help

favicon-emoji --help

> ๐ŸŒด favicon-emoji

  Usage:
    favicon-emoji [options]

  Options:
    -d, --destination <value>  favicon destination     [default: "./favicon.ico"]
    -e, --emoji <value>        choose emoji            [default: "โœจ"]
    -m, --minimum              create favicon with selected sizes (16x16, 32x32, 48x48)
    -h, --help                 Output usage information
    -l, --list                 show list of available emojis
    -p, --png <value>          png output path         [default: "./favicon.png"]
    -v, --version              Output the version number

favicon-emoji's People

Contributors

albinekb avatar dependabot[bot] avatar hasparus avatar linusu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

favicon-emoji's Issues

SyntaxError: Unexpected token )

Syntax error when running favicon-emoji --emoji โš”๏ธ

/Users/filipe/.nvm/versions/node/v7.10.1/lib/node_modules/favicon-emoji/cli.js:68
        )
        ^
SyntaxError: Unexpected token )
    at createScript (vm.js:53:10)
    at Object.runInThisContext (vm.js:95:10)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:151:9)
/Users/filipe/.nvm/versions/node/v7.10.1/lib/node_modules/favicon-emoji/lib/browser.js:70
    )
    ^
SyntaxError: Unexpected token )
    at createScript (vm.js:53:10)
    at Object.runInThisContext (vm.js:95:10)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/filipe/.nvm/versions/node/v7.10.1/lib/node_modules/favicon-emoji/lib/render.js:3:29)

I fixed locally by removing the unnecessary ,

mac: 10.12.6
npm: v4.2.0
node: v7.10.1

EACCES: permission denied, mkdir '../puppeteer/.local-chromium'

$ sudo npm install --global favicon-emoji
Password:
/usr/local/bin/favicon-emoji -> /usr/local/lib/node_modules/favicon-emoji/cli.js

> [email protected] install /usr/local/lib/node_modules/favicon-emoji/node_modules/puppeteer
> node install.js

fs.js:885
  return binding.mkdir(pathModule._makeLong(path),
                 ^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/favicon-emoji/node_modules/puppeteer/.local-chromium'
    at Object.fs.mkdirSync (fs.js:885:18)
    at Object.downloadRevision (/usr/local/lib/node_modules/favicon-emoji/node_modules/puppeteer/utils/ChromiumDownloader.js:99:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/favicon-emoji/node_modules/puppeteer/install.js:45:12)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1

UnhandledPromiseRejectionWarning on Arch Linux

Thanks for the great work!

I'm currently not able to run the tool, independent of an installation via yarn or `npm. I'm running the current Arch Linux version and also have a working installation of Chromium on the machine.

 $ favicon-emoji
(node:32444) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch chrome!
[1115/100327.215888:FATAL:zygote_host_impl_linux.cc(123)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
#0 0x5578c273b857 base::debug::StackTrace::StackTrace()
#1 0x5578c2752041 logging::LogMessage::~LogMessage()
#2 0x5578c18ff711 content::ZygoteHostImpl::Init()
#3 0x5578c1593da0 content::BrowserMainLoop::EarlyInitialization()
#4 0x5578c159a2de content::BrowserMainRunnerImpl::Initialize()
#5 0x5578c6381dd6 headless::HeadlessContentMainDelegate::RunProcess()
#6 0x5578c24879e7 content::RunNamedProcessTypeMain()
#7 0x5578c2488421 content::ContentMainRunnerImpl::Run()
#8 0x5578c249119d service_manager::Main()
#9 0x5578c2486f52 content::ContentMain()
#10 0x5578c6381075 headless::(anonymous namespace)::RunContentMain()
#11 0x5578c63810ea headless::HeadlessBrowserMain()
#12 0x5578c248e1b1 headless::HeadlessShellMain()
#13 0x5578c0ef01bd ChromeMain
#14 0x7fbc02f7bf6a __libc_start_main
#15 0x5578c0ef0029 <unknown>

Received signal 6
#0 0x5578c273b857 base::debug::StackTrace::StackTrace()
#1 0x5578c273b3bf base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7fbc09386da0 <unknown>
#3 0x7fbc02f8f8a0 __GI_raise
#4 0x7fbc02f90f09 __GI_abort
#5 0x5578c273a402 base::debug::BreakDebugger()
#6 0x5578c275242a logging::LogMessage::~LogMessage()
#7 0x5578c18ff711 content::ZygoteHostImpl::Init()
#8 0x5578c1593da0 content::BrowserMainLoop::EarlyInitialization()
#9 0x5578c159a2de content::BrowserMainRunnerImpl::Initialize()
#10 0x5578c6381dd6 headless::HeadlessContentMainDelegate::RunProcess()
#11 0x5578c24879e7 content::RunNamedProcessTypeMain()
#12 0x5578c2488421 content::ContentMainRunnerImpl::Run()
#13 0x5578c249119d service_manager::Main()
#14 0x5578c2486f52 content::ContentMain()
#15 0x5578c6381075 headless::(anonymous namespace)::RunContentMain()
#16 0x5578c63810ea headless::HeadlessBrowserMain()
#17 0x5578c248e1b1 headless::HeadlessShellMain()
#18 0x5578c0ef01bd ChromeMain
#19 0x7fbc02f7bf6a __libc_start_main
#20 0x5578c0ef0029 <unknown>
  r8: 0000000000000000  r9: 00007ffc3c62b520 r10: 0000000000000008 r11: 0000000000000246
 r12: 00007ffc3c62bc40 r13: 0000000000000161 r14: 00007ffc3c62bc38 r15: 00007ffc3c62bc30
  di: 0000000000000002  si: 00007ffc3c62b520  bp: 00007ffc3c62b7e0  bx: 0000000000000006
  dx: 0000000000000000  ax: 0000000000000000  cx: 00007fbc02f8f8a0  sp: 00007ffc3c62b520
  ip: 00007fbc02f8f8a0 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Calling _exit(1). Core file will not be generated.


TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md

(node:32444) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

TypeError: "value" argument is out of bounds

> favicon-emoji --emoji โœจ
(node:11969) UnhandledPromiseRejectionWarning: TypeError: "value" argument is out of bounds
    at checkInt (buffer.js:1185:11)
    at Buffer.writeUInt8 (buffer.js:1233:5)
    at createDirectory (/home/nickbarry/.nvm/versions/node/v8.12.0/lib/node_modules/favicon-emoji/node_modules/to-ico/index.js:32:6)
    at Promise.all.then.data (/home/nickbarry/.nvm/versions/node/v8.12.0/lib/node_modules/favicon-emoji/node_modules/to-ico/index.js:98:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
(node:11969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11969) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

> node --version
v8.12.0

Range error on example from README

> favicon-emoji --emoji โœจ
(node:19280) UnhandledPromiseRejectionWarning: RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 255. Received 288
    at writeU_Int8 (internal/buffer.js:559:11)
    at Buffer.writeUInt8 (internal/buffer.js:569:10)

favicon-emoji -l doesn't work

๐Ÿ•ธ Opened emoji cheat sheet in browser prints in the terminal but nothing opens in the browser.
Would be nice if it printed a url as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.