1.3.0 • Published 6 years ago

dumb-url-handler v1.3.0

Weekly downloads
202
License
MIT
Repository
github
Last release
6 years ago

build_status MIT License

what's this?

Node module 'url' is changed destructively in Node version 8. But now some service(AWS Lambda etc.) doesn't support Node 8. So we have to rewrite the code for 'url'. Needless to say, noone wants it. That's the reason why I create this module.

support node version

above version 4.3.2(this version is used by AWS Lambda)

how to use

use like below.

const { createUrl, addQuery } = require('dumb-url-handler')

createUrl('http://localhost', ['yyy.js'])
// http://localhost/yyy.js

addQuery('http://localhost/yyy.js', { query1: 'value', query2: 'value2' })
// http://localhost/yyy.js?query1=value&query2=value2

parseQuery('http://localhost/yyy.js?query1=value1&query2=value2')
// { query1: 'value1', query2: 'value2' }
1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago