![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.
convert node functions to Result returning ones
$ {package mananger} install jkroso/resultify
then in your app:
var resultify = require('resultify')
Teach a node function all about the Result type
var readFile = resultify(fs.readFile)
readFile('/path/to/file.js', 'utf8').then(function(src){
process.stdout.write(src)
})
just a copy of the fs module from node but with all of the async functions run through the above function
Results are like dataflow variables. If all the functions in your program understand them you can hardly tell your code isn't blocking.
fs.readFile(prompt('which file? '), 'utf8').read(function(file){
console.log(file)
})
once a function has been decorated with resultify it will incur an extra 700-1000ns per invocation which is nothing to worry about. To put that in perspective a function bound with .bind()
will become 1500-2000ns slower. Tested on a mac air with node@v0.10.12
Just run make test
FAQs
Handle errors with async/await without try/catch.
We found that resultify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.