![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Reaper picks the correct media-type for a resource based on a request's Accept header and what the resource or server supports.
It also allows the registration of serializers / deserializers for automatic serialization and deserialization of any formats that might be automatically serializable/deserializable.
var reaper = new Reaper();
reaper.register('application/json',
function(str){ return JSON.parse(str); },
function(obj){ return JSON.stringify(obj); });
reaper.isAcceptable('application/json'); // returns true
reaper.isAcceptable('*/*'); // returns true
reaper.isAcceptable('application/xml'); // returns false
reaper.isRegistered('application/json'); // returns true
reaper.isRegistered('application/xml'); // returns false
reaper.input("application/json", '{"hello" : "world"}'); // returns {hello : "world"}
reaper.output("application/json", {hello : "world"}); // returns '{"hello" : "world"}'
Additionally Reaper comes with a connect-compatible middleware that attaches a body
and rawBody
object to your request object that automatically uses any deserializer you may have configured for the content-type to populate the body
property. The middleware will return errors in the case of bad deserialization, or unacceptable Accept / Content-Type headers.
FAQs
manages serializers/deserializers for API content-types/media-types
The npm package reaper receives a total of 33 weekly downloads. As such, reaper popularity was classified as not popular.
We found that reaper 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.