
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@code-workers.io/ts-guards
Advanced tools
This library provides a small set of utility functions for checking the types of various data types like: object, array, number, boolean and string.
This library provides a small set of utility functions for checking the types of various data types like: object, array, number, boolean and string.
To get started simply add the library to your project by npm install @mikelgo/ts-guards and simply
use the utility functions where you need it. E.g.:
import { isString } from "@mikelgo/ts-guards";
// somewhere in your code
function heavyComputation(arg: any) {
if (isString(arg)) {
// do something
}
}
The utility function isObject will not return true for null and array's. This is by design.
The default JavaScript-behavior of treating arrays and also null-values as objects, is in a lot of
cases not what you usually want. To prevent this you, usually need additional checks like
if (typeof something === 'object' && !Array.isArray(something)). This library will already take care of such things.
isArrayisObjectisBooleanisNumberisStringisFileFAQs
This library provides a small set of utility functions for checking the types of various data types like: object, array, number, boolean and string.
We found that @code-workers.io/ts-guards 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.