assign_when

hexv0.2.0

Allows the use of `when` clauses on assignment statements as an alternative to using `if`, avoiding the need for boilerplate `else` clauses which return the original variables when the condition is `false`. For instance: ```elixir x = 1 when x == nil ```

License Apache-2.0permissive2 versions1 maintainers0 deps155 weekly dl
demerphq/assign_when
41
/ 100
Health
safe to use

[email protected] is safe to use (health: 41/100)

Health breakdown0 – 100
5/25
maintenance
3/20
popularity
25/25
security
6/15
maturity
2/15
community
Vulnerabilities
0
none known

Health History

Dependency Tree

License Audit

API access

Get this data programmatically — free, no authentication.

curl https://depscope.dev/api/check/hex/assign_when

First published · 2025-04-19T22:17:43.121640Z

Last updated · 2025-04-19T22:43:48.603937Z