Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ninjasort/plugin-links

Create markdown links from namespaced github repos.
https://github.com/ninjasort/plugin-links

Last synced: 1 day ago
JSON representation

Create markdown links from namespaced github repos.

Awesome Lists containing this project

README

        

# plugin-links

> Create markdown links from namespaced github repos.

## Install

```sh
$ npm install plugin-links --save
```

## Example

[Example of Metalsmith Plugins](https://github.com/cameronjroe/plugin-links/blob/master/PLUGINS.md)

## Usage

```js
import PluginLinks from 'plugin-links';

let pluginLinks = new PluginLinks({
prefix: 'metalsmith',
fileName: 'PLUGINS',
pages: 1
});

pluginLinks.create().then((string) => {
// PLUGINS.md created
console.log(string) // - [prefix-plugin](http://github.com/plugin/plugin-name)
});

```

## Options
- **prefix** {string} - namespace to search on github (required)
- **fileName** {string} - name of markdown file to be created (optional)
- **pages** {number} - amount of pages to search on github (optional)

## Testing

```sh
$ npm test
```

## License

[MIT](https://github.com/cameronjroe/plugin-links/blob/master/LICENSE)