bashme
👨‍💻👩‍💻 The first command line interface about you
Last updated 6 months ago by agurodriguez .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bashme 
SYNC missed versions from official npm registry.

bashme

Bashme is a library which provides a nerdy way to tell people about you. It was created with the intention to use it as a resumé replacement but I it can have other use cases. It aims to be customizable, extensible and easy to use.

Demo

Play with it in my personal website: http://agurodriguez.net

Getting Started

Install it:

npm install bashme

Use it:

var bashme = new Bashme.Bashme();
bashme.use(new Bashme.GitHub('agurodriguez'));
bashme.show(document.querySelector('#bashme'));

Full code in example folder.

If you use react, you can try react-bashme.

A bit into the code

The Bashme instance

Bashme is the main class which acts as library's entry point. It's reponsible for processing the input/output from/to the terminal and for running the tasks related to every given command.

It has two important methods, use and show:

use(provider: IProvider)

This method registers a new IProvider in the Bashme instance. When the IProvider is registerd it adds commands to the Bashme instance that can be called by the user.

show(domElement: HTMLElement)

This method converts an HTMLElement into a full interactive terminal (Using xterm.js) to allow users to write the commands they want to execute.

Providers

A provider is a class that implements the IProvider interface and provides commands to the Bashme instance that the user can then execute.

Commands

A command is a class that inhertis from the AsyncCommand or the SyncCommand classes and are used to perform some specific action.

Built-in Providers

GitHub

See GitHub.ts

Commands

Command Description
github Shows GitHub profile information
github contribs Shows GitHub contributions
github orgs Shows GitHub organizations
github repos Shows GitHub repositories

Json

See Json.ts

Commands

Command Description
name Shows name
bio Shows bio
education Shows education
work Shows work experience
volunteer Shows volunteer experience
awards Shows awards
publications Shows publications
skills Shows skills
languages Shows languages

License

MIT License

Copyright (c) 2018 Agustín Rodríguez

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Current Tags

  • 0.3.6                                ...           latest (6 months ago)

22 Versions

  • 0.3.6                                ...           6 months ago
  • 0.3.5                                ...           7 months ago
  • 0.3.4                                ...           7 months ago
  • 0.3.3                                ...           8 months ago
  • 0.3.2                                ...           8 months ago
  • 0.3.1                                ...           8 months ago
  • 0.3.0                                ...           8 months ago
  • 0.2.11                                ...           9 months ago
  • 0.2.9                                ...           9 months ago
  • 0.2.8                                ...           10 months ago
  • 0.2.7                                ...           10 months ago
  • 0.2.6                                ...           10 months ago
  • 0.2.5                                ...           10 months ago
  • 0.2.4                                ...           10 months ago
  • 0.2.3                                ...           10 months ago
  • 0.2.2                                ...           10 months ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (15)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |