├── .gitignore ├── .github └── workflows │ └── npm-publish.yml ├── package.json └── fka.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages 3 | 4 | name: Node.js Package 5 | 6 | on: 7 | release: 8 | types: [created] 9 | 10 | jobs: 11 | publish-npm: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v2 15 | - uses: actions/setup-node@v2 16 | with: 17 | node-version: 16 18 | registry-url: https://registry.npmjs.org/ 19 | - run: npm ci 20 | - run: npm publish 21 | env: 22 | NODE_AUTH_TOKEN: ${{secrets.npm_auth_token}} 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fka", 3 | "version": "0.0.11", 4 | "description": "Fatih Kadir Akin About", 5 | "bin": { 6 | "fka": "fka.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "git+https://github.com/f/fka.git" 11 | }, 12 | "keywords": [ 13 | "fka", 14 | "fatihkadirakin", 15 | "fkadev" 16 | ], 17 | "author": "Fatih Kadir Akin ", 18 | "license": "MIT", 19 | "bugs": { 20 | "url": "https://github.com/f/fka/issues" 21 | }, 22 | "homepage": "https://github.com/f/fka#readme", 23 | "dependencies": { 24 | "chalk": "^4.1.0", 25 | "got": "^11.5.0", 26 | "inquirer": "^7.3.0", 27 | "open": "6.0.0", 28 | "terminal-image": "^1.1.0", 29 | "terminal-link": "^2.1.1", 30 | "word-wrap": "^1.2.3" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /fka.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 'use strict'; 3 | var c = require('chalk'); 4 | var link = require('terminal-link'); 5 | var img = require('terminal-image'); 6 | var got = require('got'); 7 | var ww = require('word-wrap'); 8 | var iq = require('inquirer'); 9 | var opn = require('open'); 10 | 11 | got('https://avatars3.githubusercontent.com/u/196477?s=600&v=4', {responseType:'buffer'}) 12 | .then(function (image) { return img.buffer(image.body, {width: '33%'}) }) 13 | .then(function (image) { 14 | 15 | console.log(image) 16 | console.log(ww(` 17 | Hello, this is ${c.blue.bold("Fatih Kadir Akın")}, award-winning ${c.yellow.bold("GitHub Star ⭐️")}! 18 | 19 | I'm a passionate ${c.bgRed.white.bold("software developer")} living in ${c.bold("Istanbul, Turkey")}, working for ${link(c.hex('#3858A2').bold('Teknasyon'), 'https://teknasyon.com')} as the ${c.bgRed.white.bold("DevRel Manager")}. 20 | I ${c.bold("wrote a book")} about ${c.underline.bold.yellow("JavaScript")}. I love being part of development of web technologies. I like to ${c.bold("organize conferences and give talks")}. 21 | I love ${c.underline.bold.green("open source development")} and I build things on my GitHub profile ${link(c.red.bold('github.com/f'), 'https://github.com/f')}. 22 | I love ${c.bold.yellow("JavaScript")} and ${c.bold.red("Ruby (and RoR)")}. 23 | 24 | `.trim(), { width: 200, trim: true })); 25 | 26 | console.log('\n\n') 27 | iq.prompt([ 28 | { 29 | type: 'list', 30 | message: 'Do you want to learn more about me?', 31 | name: 'open', 32 | choices: [ 33 | { name: c.yellow(`⭐️ My GitHub Star profile (${c.bold('GitHub')})`), value: 'https://stars.github.com/profiles/f/' }, 34 | { name: c.gray(`💻 What am I doing about Open Source? (${c.bold('GitHub')})`), value: 'https://github.com/f' }, 35 | { name: c.cyan(`𝕏 What do I think? (${c.bold('X')})`), value: 'https://x.com/fkadev' }, 36 | { name: c.blue(`🦋 What do I also think? (${c.bold('Bluesky')})`), value: 'https://bsky.app/profile/fka.dev' }, 37 | { name: c.blue(`🏹 Curriculum vitae, the path of my life (${c.bold('LinkedIn')})`), value: 'https://linkedin.com/in/fatihkadirakin' }, 38 | { name: c.red('👋 Nope. Bye.\n'), value: false } 39 | ] 40 | } 41 | ]).then(function (a) { opn(a.open); process.exit() }).catch(function () {}); 42 | }).catch(function (e) { console.log(e)}); 43 | --------------------------------------------------------------------------------