
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Lightweight TypeScript validation library with fluent API.
isOnly.String(val)Validates non-empty strings.
Returns true for:
'hello'' test 'Returns false for:
'' (empty string)' ' (only spaces)null, undefined, different typesisOnly.Number(val)Validates valid numbers (excluding zero and NaN).
Returns true for:
1-53.14Returns false for:
'123' (string)0 (zero)NaN (not a number)null, undefined, different typesisOnly.Boolean(val)Validates boolean true values only.
Returns true for:
trueReturns false for:
false1, 0, 'true', null, undefined, different typesisOnly.Object(val)Validates non-empty objects (excluding arrays).
Returns true for:
{a: 1}{ key: 'value' }Returns false for:
{} (empty object)[] (array)null, undefined, 'string', 0, different typesisOnly.Array(val)Validates non-empty arrays.
Returns true for:
[1, 2, 3]['a']Returns false for:
[] (empty array)'' (empty string)' ' (only spaces)null, undefined, different typesisOnly.Failure(val)Returns true for values that fail all other validations.
Returns true for:
null, undefined'', ' '0, false{}, []Returns false for:
Each validator returns a ValidationResult object with additional methods:
.value - Returns validated value or null.empty - Inverted validation result.throw() - Throws error on failure, returns value on successFAQs
Lightweight TypeScript validation library with fluent API
We found that is-only demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.