Skip to content

AungMyoKyaw/npm-namecard

Repository files navigation

npm name namecard lib

npm_namecard_ss

Usage

npm i namecard

package.json

.
.
.
"bin": {
  "yourname": "./src/index.js"
},
.
.
.

index.js

#!/usr/bin/env node

const namecard = require('namecard');
const nameCardConfig = {
  name: 'Aung Myo Kyaw',
  about: 'nothing',
  items: [
    {
      label: 'Github',
      url: 'https://github.com/AungMyoKyaw',
    },
    {
      label: 'Blog',
      url: 'https://blog.aungmyokyaw.com/',
    },
    {
      label: 'Twitter',
      url: 'https://twitter.com/aung_myo_kyaw',
    },
    {
      label: 'LinkedIn',
      url: 'https://www.linkedin.com/in/aungmyokyaw/',
    },
  ],
};
namecard(nameCardConfig.name, nameCardConfig.about, nameCardConfig.items);

Example Repo

AungMyoKyaw/aungmyokyaw-npm

License

MIT © Aung Myo Kyaw