Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-badge

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-badge - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

doc/list.md

71

package.json
{
"name": "generator-badge",
"version": "0.0.0",
"description": "Generate badges for your readme",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"generate",
"badge",
"badges",
"readme",
"markdown",
"node",
"npm"
],
"author": "Tan Li Hau <lhtan93@gmail.com>",
"license": "MIT"
}
"name": "generator-badge",
"version": "1.0.0",
"description": "Generate badges for your readme",
"main": "index.js",
"bin": {
"badge": "./lib/cli.js"
},
"preferGlobal": true,
"scripts": {
"test": "jasmine-node spec/"
},
"keywords": [
"generate",
"badge",
"badges",
"readme",
"markdown",
"node",
"npm"
],
"author": "Tan Li Hau <lhtan93@gmail.com>",
"license": "MIT",
"dependencies": {
"arrify": "^1.0.1",
"bluebird": "^3.3.5",
"chalk": "^1.1.3",
"configstore": "^2.0.0",
"find-up": "^1.1.2",
"git-branch": "^0.3.0",
"git-repo-name": "^0.5.1",
"git-username": "^0.4.0",
"github-repo-url": "^0.2.1",
"inquirer": "^1.0.2",
"lodash": "^4.11.1",
"meow": "^3.7.0",
"read-pkg-up": "^1.0.1",
"repeating": "^2.0.1",
"through2": "^2.0.1",
"trim-newlines": "^1.0.0"
},
"devDependencies": {
"jasmine-node": "^1.14.5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tanhauhau/generator-badge.git"
},
"bugs": {
"url": "https://github.com/tanhauhau/generator-badge/issues"
},
"homepage": "https://github.com/tanhauhau/generator-badge#readme"
}
# generator-badge
[![npm version](https://badge.fury.io/js/generator-badge.svg)](https://badge.fury.io/js/generator-badge)
<!-- badge -->
[![travis status](https://img.shields.io/travis/tanhauhau/generator-badge.svg)](https://travis-ci.org/tanhauhau/generator-badge)
[![npm version](https://img.shields.io/npm/v/generator-badge.svg)](https://www.npmjs.com/package/generator-badge)
[![npm license](https://img.shields.io/npm/l/generator-badge.svg)](https://www.npmjs.com/package/generator-badge)
[![npm download](https://img.shields.io/npm/dm/generator-badge.svg)](https://www.npmjs.com/package/generator-badge)
[![npm download](https://img.shields.io/npm/dt/generator-badge.svg)](https://www.npmjs.com/package/generator-badge)
[![david dependency](https://img.shields.io/david/tanhauhau/generator-badge.svg)]()
[![david dev-dependency](https://img.shields.io/david/dev/tanhauhau/generator-badge.svg)]()
<!-- endbadge -->
> Generate badges for your readme

@@ -10,9 +19,95 @@

```bash
$ npm install --save generator-badge
$ npm install --save --global generator-badge
```
## Example
**BEFORE**
README.md:
```markdown
# MY-AWESOME-PROJECT
<!-- badge -->
<!-- endbadge -->
```
**THEN YOU DO**
Terminal:
```bash
awesome-project$ badge install travis npm-version
```
**WHAT YOU GET**
README.md:
```markdown
# MY-AWESOME-PROJECT
<!-- badge -->
[![travis](https://img.shields.io/travis/tanhauhau/awesome-project.svg)](https://travis-ci.org/tanhauhau/awesome-project)
[![npm-version](https://img.shields.io/npm/v/awesome-project.svg)](https://www.npmjs.com/package/awesome-project)
<!-- endbadge -->
```
## Usage
**Install badges**
```bash
$ badge install <badges> [<args>]
```
You can specify required field values into arguments:
```bash
$ badge install travis --repo-username=tanhauhau --repo-name=awesome-project
```
For field values that is missing, `badge` will prompt you to enter.
```bash
$ badge install travis
Inferring information needed...
? repo-username: tanhauhau
? repo-name: awesome-project
Preparing the badges...
Looking for README...
Injecting badges into README...
Done :)
```
**List of all badges available**
```bash
$ badge list
```
**Help**
```bash
$ badge help <badge>
$ badge help travis
travis-default
Build apps with confidence.
Description : Travis build status of master branch
Fields : repo-username, repo-name
```
## Todo List
- [ ] Find README of various format: markdown, textile, rdoc, rst, pod, html
- [ ] Inferring git, svn repo information
- [ ] Storing global preferences, eg: able to remember author name in global
- [ ] Storing local preferences, eg: able to remember repo info in local package
- [ ] Filename as argument
- [ ] [More badges available](https://github.com/tanhauhau/generator-badge/blob/master/doc/list.md)
## Badge credits to
[![shields.io](http://shields.io/logo.svg)](http://shields.io)
## Contributing

@@ -19,0 +114,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc