Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
tcomb-promise
Advanced tools
tcomb combinator for promises / thenables.
npm install tcomb-promise
T = require 'tcomb-promise'
User = T.struct
name: T.String
email: T.String
, 'User'
fetchUser = T.func T.String, T.promise(User)
.of (id) ->
fetch "https://example.com/users/#{id}"
.then ({data}) -> data
fetchUser('someId').then (u) ->
# result is automatically hydrated
User.is(u) == true
The promise(type)
combinator is added to the tcomb
namespace.
0.0.2
(2016-06-29)
Rewrite, it seems to actually work now.
FAQs
tcomb combinator for promises / thenables
The npm package tcomb-promise receives a total of 1 weekly downloads. As such, tcomb-promise popularity was classified as not popular.
We found that tcomb-promise 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.