Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-incremental-id

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-incremental-id

Ensures incremental id for pages

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
1
Weekly downloads
 
Created
Source

Hexo incremental id

I can eat glass, it doesn't hurt me.

A script that adds an incremental id to all your pages, for those who prefer using fixed ids in permalink.

Attention! This script will scan all your markdown files under sources folder every time you create new post, and all the methods are synchronous, you may encounter

  • performance problems
  • some old md files modified because a missing id is saved

Installation

PLEASE BACKUP YOUR EXISTING FILES BEFORE USING THIS SCRIPT

npm install --save hexo-incremental-id

FAQ

This script is ugly

I agree with you. if you have better / elegant way to handle a unique incremental id, please contact me.

No test?

No, no test. I've wasted several hours reading hexo docs and writing this script, I can't afford more. And this script is so brute-force that no one is supposed to use it, except me.

Keywords

FAQs

Package last updated on 29 May 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc