Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
tiny-json-http
Advanced tools
Minimalist HTTP
client for GET
and POST
ing JSON
payloads
npm i tiny-json-http --save
tiny.get(options, callback)
tiny.post(options, callback)
tiny.put(options, callback)
tiny.del(options, callback)
url
requireddata
form vars for tiny.post
, tiny.put
, and tiny.delete
otherwise querystring vars for tiny.get
headers
key/value map used for headerserr
a real javascript Error
if there was onedata
an object with headers
and body
keysvar tiny = require('tiny-json-http')
var url = 'http://www.randomkittengenerator.com'
tiny.get({url}, function __got(err, result) {
if (err) {
console.log('ruh roh!', err)
}
else {
console.log(result)
}
})
Check out the tests for more examples! :heart_decoration:
FAQs
Minimalist `HTTP` client for `GET`, `POST`, `PUT`, `PATCH` and `DELETE` `JSON` payloads
The npm package tiny-json-http receives a total of 46,421 weekly downloads. As such, tiny-json-http popularity was classified as popular.
We found that tiny-json-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.