Gathering detailed insights and metrics for pasted-request
Gathering detailed insights and metrics for pasted-request
Gathering detailed insights and metrics for pasted-request
Gathering detailed insights and metrics for pasted-request
Generate a http request config from a curl command string or a raw http request string.
npm install pasted-request
Typescript
Module System
Node Version
NPM Version
TypeScript (92.73%)
JavaScript (7.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
18 Commits
2 Watchers
6 Branches
1 Contributors
Updated on Mar 07, 2023
Latest Version
1.3.0
Package Id
pasted-request@1.3.0
Unpacked Size
24.57 kB
Size
7.42 kB
File Count
24
NPM Version
7.4.3
Node Version
15.7.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Generate a http request config from a curl command string or a raw http request string.
1yarn add pasted-request 2npm i pasted-reqeust
1import axios from 'axios; 2import request from 'pasted-request' 3 4const reqbin = request.curl` 5curl -X POST https://reqbin.com/echo/post/json?foo=true \ 6-H "Accept: application/json" \ 7-H "Content-Type: application/x-www-form-urlencoded" \ 8-d "Id=78912&Customer=Jason%20Sweet" 9` 10reqbin.method // 'post' 11 12reqbin.url(); // https://reqbin.com/echo/post/json?foo=true 13reqbin.url({ foo: false, bar: 'baz' }); // https://reqbin.com/echo/post/json?foo=false&bar=baz 14 15reqbin.headers(); // { 'accept': 'application/json', 'content-type': 'application/x-www-form-urlencoded' } 16reqbin.headers({ cookie: 'foo=bar' }); // { 'accept': 'application/json', 'content-type': 'application/x-www-form-urlencoded': 'cookie': 'foo=bar' } 17 18reqbin.body(); // 'Id=78912&Customer=Jason%20Sweet' 19reqbin.body({Id: 1000}); // 'Id=1000&Customer=Jason%20Sweet' 20 21 22// same as above 23const reqbin2 = request.http` 24PATCH /echo/post/json?foo=true HTTP/1.1 25Host: reqbin.com 26Accept: application/json 27Content-Type: application/json 28Content-Length: 81 29 30{ 31 "Id": 78912, 32 "Customer": "Jason Sweet" 33} 34` 35 36const { method, url, headers, body } = reqbin2; 37 38axios[method](url(), body(), { headers: headers() }) 39 .then(response => response.data) 40 .then(console.log) 41
Parser only supports simple GET, DELETE requests and application/json
or application/x-www-form-urlencoded
POST, PATCH, PUT request only.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More