Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arjunrao87/rawbot
Convert Git BLOB links to Raw links
https://github.com/arjunrao87/rawbot
blob git npm package raw replace string
Last synced: about 5 hours ago
JSON representation
Convert Git BLOB links to Raw links
- Host: GitHub
- URL: https://github.com/arjunrao87/rawbot
- Owner: arjunrao87
- Created: 2018-06-08T03:16:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T04:16:44.000Z (over 6 years ago)
- Last Synced: 2024-11-08T21:53:30.528Z (11 days ago)
- Topics: blob, git, npm, package, raw, replace, string
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rawbot [![CircleCI](https://circleci.com/gh/arjunrao87/rawger.svg?style=svg)](https://circleci.com/gh/arjunrao87/rawger)
## Convert BLOB URLs of Github/Gitlab to their raw format
You can probably do this using the right APIs but this is a quick and dirty way to convert a blob ( binary large object ) link to a raw link
Note : For Gitlab the transformed link actually exists whereas for Github it results in a rerouting.
# Usage
```
var rawbot = require('rawbot');
const raw = rawbot.toRaw("https://github.com/arjunrao87/the-one/blob/master/App.js");
```# NPM
Package available at [NPM](https://www.npmjs.com/package/rawbot)
# Running tests
```
./node_modules/ava/cli.js index.test.js
```