Skip to content

arjunrao87/rawbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rawbot CircleCI

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

Running tests

./node_modules/ava/cli.js index.test.js