Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
hexo-search-indexer
Advanced tools
hexo-search-indexer
is a plugin for Hexo static site generator that generates JSON file that contains all data to implement site search. It's convenient to use with serverless app that searches on your website.
ASP.NET
will not be split into ASP
and NET
).$ npm install hexo-search-indexer --save-dev
search_indexer
to Hexo config file (see details below).npx hexo generate-search-index
search.json
file will appear in the output folder.To configure the plugin add search_indexer
to Hexo config file. Example:
search_indexer:
enabled: true
content: true
include:
- name: title
cleanup: true
index: true
stemmers:
- en
- ru
reserved:
- asp.net
- vs.net
- ado.net
- .net
minWordLength: 5
searchIndexFile: search.json
Key | Required | Default value | Description |
---|---|---|---|
enabled | no | true | Flag to disable plugin execution. |
content | no | true | Whether clean content should be included into index file as well. If false only words dictionary will be included in the index. |
include | no | [title] | Array of properties that should be included into index file. |
include[].name | yes | Property name that should be included into index file. This is the name of post object property. | |
include[].cleanup | yes | Whether property value should be cleaned up during indexing. | |
include[].index | yes | Whether property value should be indexed (included into words section). | |
stemmers | no | [en, ru] | The plugin "normailze" the text by clearing symbols from initial text. One of the technique is stemming. This param defines which languages should be used to stem the words. Possible values: nl , en , fr , id , it , jp , no /nb /nn , pt , ru , sv . Check Natural library for more details. |
reserved | no | [] | The array of the reserved words that won't be processed during words normalization. For example, ASP.NET will be splitted into ASP and NET by default. If you want to preserve this, you need to add this to reserved config. |
minWordLength | no | 5 | Minimum word length. The words shorter than this param will be ignored. |
searchIndexFile | no | search.json | Output file name. |
FAQs
Search index generator for Hexo static site generator
The npm package hexo-search-indexer receives a total of 1 weekly downloads. As such, hexo-search-indexer popularity was classified as not popular.
We found that hexo-search-indexer 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.