Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
hexo-nanoid
Advanced tools
Use ai/nanoid to generate abbreviated post links.
hexo new
to generate ID for new posts.nanoid:generate
is emitted after each ID generation.The following list shows the descending precedence of config files. (The first one presented is used.)
nanoid
in <hexo_root>/_config.yml
theme_config.nanoid
in <hexo_root>/_config.yml
nanoid
in <hexo_root>/themes/<theme_name>/_config.yml
interface HexoNanoIdOptions {
/**
* Autofix invalid or conflicted IDs.
* @default false
*/
autofix: boolean
/**
* Max try to find an unique ID.
* @default 10
*/
maxtry: number | "Infinity"
/**
* Ensure the ID uniqueness when creating a new post,
* which somewhat slow down the new post generation
* since all posts will be loaded and validated.
*
* The uniqueness of the new post ID is not guaranteed if this config is set to `false`.
* Check https://zelark.github.io/nano-id-cc/ for more info about collision probability.
* @default true
*/
check_on_new: boolean
/***********************************/
/*** Configuring nanoid library ***/
/***********************************/
/**
* @default 21
*/
length: number
/**
* @default "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz-"
*/
characters?: string
}
FAQs
Use ai/nanoid to generate abbreviated post links.
The npm package hexo-nanoid receives a total of 4 weekly downloads. As such, hexo-nanoid popularity was classified as not popular.
We found that hexo-nanoid 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.