
Research
/Security News
5 Malicious Rust Crates Posed as Time Utilities to Exfiltrate .env Files
Published late February to early March 2026, these crates impersonate timeapi.io and POST .env secrets to a threat actor-controlled lookalike domain.
Returns the first result from an async iterator
$ npm i it-first
<script> tagLoading this module through a script tag will make it's exports available as ItFirst in the global namespace.
<script src="https://unpkg.com/it-first/dist/index.min.js"></script>
Mostly useful for tests.
import first from 'it-first'
// This can also be an iterator, generator, etc
const values = [0, 1, 2, 3, 4]
const res = first(values)
console.info(res) // 0
Async sources must be awaited:
import first from 'it-first'
const values = async function * () {
yield * [0, 1, 2, 3, 4]
}
const res = await first(values())
console.info(res) // 0
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
Returns the first result from an async iterator
The npm package it-first receives a total of 86,260 weekly downloads. As such, it-first popularity was classified as popular.
We found that it-first 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.

Research
/Security News
Published late February to early March 2026, these crates impersonate timeapi.io and POST .env secrets to a threat actor-controlled lookalike domain.

Security News
A recent burst of security disclosures in the OpenClaw project is drawing attention to how vulnerability information flows across advisory and CVE systems.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.