
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
@yafh/image-map
Advanced tools
Rust 驱动的图片瓦片生成器,提供 Node.js SDK + CLI,适合批量切图与多级缩放瓦片生成。
pnpm add @yafh/image-map
image-map generate --input <file> --output <dir> [options]
常用选项:
--tile-size <n>:瓦片尺寸,默认 256。--format <fmt>:可重复,png | jpg | jpeg | webp,默认 webp。--origin <o>:topLeft | center,默认 topLeft。--min-zoom <n>:最小缩放级别,默认 0。--max-zoom <n>:最大缩放级别,默认 0。-h, --help:显示帮助。import { ImageMap } from '@yafh/image-map'
const result = await ImageMap.generate({
input: './input.png',
output: './tiles',
tileSize: 256,
formats: ['webp'],
origin: 'topLeft',
minZoom: 0,
maxZoom: 4,
})
console.log(result)
平台原生二进制由可选依赖提供,安装时会按需拉取对应平台包。
FAQs
Image tile generator (SDK + CLI)
The npm package @yafh/image-map receives a total of 21 weekly downloads. As such, @yafh/image-map popularity was classified as not popular.
We found that @yafh/image-map 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
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.