markdown_display

1.0.5 • Public • Published

introduction

  • 精简高效的httpServer组件,体积小巧,运行高效,代码简单,支持multipart/form-data格式,支持通配路由,支持路由变量,可完美衔接AliNode(aliyun function compute)环境,在aliyunFC环境中使用最小内存选项即可
  • simplified and efficient httpServer component, small size, efficient operation, simple code, support multipart/form-data format, support wildcard routing, support routing variables, can perfectly connect AliNode (aliyun function compute) environment, use the minimum memory option in aliyunFC environment


environment

  • 1 General Node(nodejs)
  • 2 AliNode(aliyun-fc,aliyun function compute)


run

  • 1 NodeJS(on os)

run “sample_bin.js directly(need to set environment variable develoment=true or delete related code in sample_bin.js)

  • 2 AliNode(on aliyun-fc)

setup:function>setting>functing entry to “sample_bin.requestForAliyun”(its default value is generally:index.handler)



test

  • 返回从【2023-01-01到现在】的时间戳的62进制形式
  • Returns the base 62 form of the timestamp from [2023-01-01 to present]
    http://localhost:9090/base62/2023/
  • 返回10个time开头的有字母ID(有分段符)
  • Returns 10 alphabetic IDs starting with time (with segment characters)
    http://localhost:9090/timeid/10
  • 返回20个time开头的有字母ID(无分段符)
  • Returns 20 alphabetic IDs starting with time (no segment characters)
    http://localhost:9090/timeID/20
  • 返回30个time开头的全数字ID(有分段符)
  • Returns 30 numeric IDs starting with times (with segment characters)
    http://localhost:9090/timeno/30


history

  • 2023-08-26
  • 去掉了post和put时候 强制要求content-length大于0的要求
  • removed the requirement that content-length be greater than 0 when post and put are mandatory
  • 未配置 允许的content-type 的情况下,那么允许所有的
  • if the allowed content-type is not configured, all are allowed
  • 优化一些http状态码的提示语
  • optimized some http status code prompts
  • 增加了示例代码
    sample_bin:入口文件;
    sample_router:路由文件
  • added sample file
    sample_bin:entry file;
    sample_router:router file

author

  • fujun wang(wang.fu.jun@qq.com
  • Wangjing Beijing China
  • origin of the name : mingyang is my son's name
  • last modified : 2023-08-26

Package Sidebar

Install

npm i markdown_display

Weekly Downloads

83

Version

1.0.5

License

none

Unpacked Size

3.35 kB

Total Files

2

Last publish

Collaborators

  • wang.fu.jun