~evanj/ascii

331031fa038358ca914138ba3f81799b54705a41 — Evan M Jones 11 months ago 84f070c master
Feat(readme and license): Adding readme and license.
5 files changed, 100 insertions(+), 0 deletions(-)

M .gitignore
M .now-ignore
A LICENSE
A README
D ascii
M .gitignore => .gitignore +1 -0
@@ 1,1 1,2 @@
gin-bin
ascii

M .now-ignore => .now-ignore +1 -0
@@ 1,1 1,2 @@
gin-bin
ascii

A LICENSE => LICENSE +21 -0
@@ 0,0 1,21 @@
The MIT License (MIT)

Copyright (c) 2019-present Evan Jones

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

A README => README +77 -0
@@ 0,0 1,77 @@
                _ _                         _                        
  __ _ ___  ___(_|_)  _____   ____ _ _ __  (_) ___  _ __    ___  ___ 
 / _` / __|/ __| | | / _ \ \ / / _` | '_ \ | |/ _ \| '_ \  / _ \/ __|
| (_| \__ \ (__| | ||  __/\ V / (_| | | | || | (_) | | | ||  __/\__ \
 \__,_|___/\___|_|_(_)___| \_/ \__,_|_| |_|/ |\___/|_| |_(_)___||___/
                                         |__/                        

MMMMMMMMMMMMMMMMMMMMMMMM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MMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

Welcome! This is a simple API endpoint hosted on Zeit's Now 2.0. There's only
one route: "/" and this route takes two optionaly query parameters. "u" for an
image URL and "w" for the width of the image. "u" defaults to the image of above
and "w" defaults to 100 and all values of "w" must stay between 80 and 400.

Example: 

https://ascii.evanjon.es/?w=80&u=https://scontent-sea1-1.cdninstagram.com/vp/a95667d3f3b8465d9e66098339c75c17/5D99DA41/t51.2885-15/sh0.08/e35/s640x640/59795683_566836853803156_1548408955243742005_n.jpg?_nc_ht%3Dscontent-sea1-1.cdninstagram.com

This ascii-ifies an image at: 

https://scontent-sea1-1.cdninstagram.com/vp/a95667d3f3b8465d9e66098339c75c17/5D99DA41/t51.2885-15/sh0.08/e35/s640x640/59795683_566836853803156_1548408955243742005_n.jpg?_nc_ht%3Dscontent-sea1-1.cdninstagram.com

and makes it width of 80 characters.

Enjoy.




D ascii => ascii +0 -0