# credits-to

> Summarize npm and bower dependencies so you can give credit.

Latest version **0.0.2** (published 2014-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install credits-to
pnpm add credits-to
yarn add credits-to
bun add credits-to
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-11-11 |
| First published | 2014-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Joakim Larsson |
| Maintainers | jlarsson |
| Keywords | license, npm, bower, credit |

## Links

- npm: https://www.npmjs.com/package/credits-to
- Repository: https://github.com/jlarsson/credits-to
- Issues: https://github.com/jlarsson/credits-to/issues
- npm.io page: https://npm.io/package/credits-to

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^0.9.0
- [lodash](https://npm.io/package/lodash.md) ^2.4.1

## Recent versions

- 0.0.2 (latest) — 2014-11-11
- 0.0.1 — 2014-11-11

## README

## credits-to
Summarize npm and bower dependencies so you can give credit.

## Install
```
$ npm install credits-to
```

## Features
- collects installed information only, ie package.json, bower.json/.bower.json must exist
- collects all versions, licenses and repositories
- normalizes repository urls
- handles dependencies, devDependencies, peerDependencies

## Usage

```
var creditsto = require('credits-to');

creditsto(function (err, credits){
  console.log(credits);
});

creditsto({root: '.', bower: true, npm: true}, function (err, credits){
  console.log(credits);
}); 

```

## Output
The result (```credits``` above) will be similar to below (which is taken from unit test output)

```
{
  "bower": {
    "app.js": {
      "name": "app.js",
      "versions": [
        null
      ],
      "description": "",
      "licenses": [
        "MIT"
      ],
      "repositories": []
    },
    "bootstrap": {
      "name": "bootstrap",
      "versions": [
        "3.3.0"
      ],
      "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
      "licenses": [],
      "repositories": [
        "https://github.com/twbs/bootstrap"
      ]
    },
    "jquery": {
      "name": "jquery",
      "versions": [
        "2.1.1"
      ],
      "description": "",
      "licenses": [
        "MIT"
      ],
      "repositories": [
        "https://github.com/jquery/jquery"
      ]
    }
  },
  "npm": {
    "App": {
      "name": "App",
      "description": "",
      "versions": [],
      "licenses": [],
      "repositories": []
    },
    "fixer": {
      "name": "fixer",
      "description": "nodejs fixer of things",
      "versions": [
        "1.0.0"
      ],
      "licenses": [
        "ICS"
      ],
      "repositories": [
        "https://github.com/handy/man"
      ]
    },
    "doer": {
      "name": "doer",
      "description": "nodejs doer of stuff",
      "versions": [
        "1.2.3",
        "1.3.0"
      ],
      "licenses": [
        "BSD",
        "BSD2"
      ],
      "repositories": []
    },
    "tester": {
      "name": "tester",
      "description": "nodejs testing",
      "versions": [
        "9.1.1"
      ],
      "licenses": [
        "MIT"
      ],
      "repositories": [
        "https://github.com/bravestar/tester"
      ]
    },
    "peerie": {
      "name": "peerie",
      "description": "",
      "versions": [
        "1.5.0"
      ],
      "licenses": [
        "MIT"
      ],
      "repositories": []
    }
  }
}

```

---
_Source: https://npm.io/package/credits-to · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
