shorten:仅限 API 的 URL 缩短器

时间:2021-07-07 02:32:05
【文件属性】:
文件名称:shorten:仅限 API 的 URL 缩短器
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-07 02:32:05
CoffeeScript 缩短 仅基于 API 的 Node.JS 的 CoffeeScript URL 缩短器 我通常认为,但我需要一个简单的项目来让我复习我的 CoffeeScript。 另外,许多小的 URL 缩短器比几个大的要小一些。 例子 缩短网址: $ curl --data url=http://google.com/ http://localhost:5000/new http://localhost:5000/1 获取缩短的 URL 列表: $ curl -i http://localhost:5000/urls HTTP/1.1 200 OK Date: Fri, 24 May 2013 11:29:20 GMT Connection: keep-alive Transfer-Encoding: chunked { " 1 " : " http://github.com/l
【文件预览】:
shorten-master
----text-respond.coffee(443B)
----package.json(297B)
----array-utils.coffee(104B)
----app.coffee(1002B)
----routes()
--------index.coffee(93B)
----Procfile(22B)
----views()
--------index.jade(241B)
--------layout.jade(298B)
----.gitignore(19B)
----public()
--------javascripts()
--------stylesheets()
----README.md(776B)
----string-utils.coffee(633B)
----shorten.coffee(991B)
----urls.coffee(2KB)

网友评论