1.0.11 • Published 4 years ago

@feizheng/next-parse-request-args v1.0.11

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

next-parse-request-args

Request arguments parser.

version license size download

installation

npm install -S @feizheng/next-parse-request-args

usage

import '@feizheng/next-parse-request-args';

// input:
// 1. (config)
// 2. (url)
// 3. (url, config)
// 4. (method, config)
// 5. (method, url, config)
// 6. (method, url, data, config)

// output:
{
  url: '/api/v1',
  method:'get',
  data: { query:1, zx:1 },
  headers: { 
    'Authorization': 'eyJhbGciOiJIUzUxMiJ9',
    'Content-Type': 'application/json' 
  }
}

license

Code released under the MIT license.

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago