
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
pure typescript implementation of printf-family with type checking
import { printf } from 'printf-ts';
// Hello printf 1 1.20
printf("Hello %s %d %.2lf", "printf", 1, 1.2)
\n
to the end(not affect to return value)see cppreference-printf for each description of specifier
+
, -
,
, #
, 0
width
, precision
*
)h
, hh
, l
, ll
, L
, j
, z
, t
%c
, %s
, %d
, %i
, %u
, %o
, %x
, %X
, %f
, %F
, %e
, %E
, %g
, %G
, %p
, %%
specifier | argument type | description |
---|---|---|
%c | string | str[0] ?? '' |
%c | number | utf8 code point |
%s | string | |
%n | null | please use sprintf(...).length |
%d, %i, %u, %o, %x, %X
short|int
-> number
long|long long|intmax_t|ssize_t|ptrdiff_t
-> bigint
%f, %F, %e, %E, %g, %G
double|long double
-> number
infinity
, -infinity
, NaN
]
F
,E
,G
,A
) => "INF"
, "-INF"
, "NAN"
"inf"
, "-inf"
, "nan"
%p
void*
-> bigint
0n
=> "(nil)"
"0x" + value.toString(16)
*
int
-> number
FAQs
printf for typescript
The npm package printf-ts receives a total of 2 weekly downloads. As such, printf-ts popularity was classified as not popular.
We found that printf-ts 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 researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.