Skip to content

stopism/shortreddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@stopism/shortreddit

npm bundle size

A Reddit URL Shortener that's simple to use.

Install

$ npm install @stopism/shortreddit

Usage

const reddit = require("@stopism/shortreddit");

reddit("https://www.reddit.com/r/javascript/comments/6hz7o6/pass_by_reference_pass_by_value/");
//=> "https://redd.it/6hz7o6"

reddit(1337);
//=> Uncaught TypeError: reddit wants a string!
//    at reddit (<anonymous>:2:39)
//    at <anonymous>:11:1

About

A Reddit URL Shortener that's simple to use.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors