
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
ghost-finder
Advanced tools
npm install ghost-finder
Include script
<script src="{{asset "ghost-finder/dist/ghost-finder.js"}}"></script>
Setup markup
<div>
<input id="search-input" type="text" placeholder="Type to search" />
<div id="search-result"></div>
</div>
Activate the plugin
new GhostFinder({
input: '#search-input',
showResult: '#search-result',
contentApiKey: //CONTENT API KEY...,
})
To see how you can get contentApiKey , Click Here
| Name | Default Value | Details |
|---|---|---|
| input | null Required | DOM selector of search input |
| showResult | null Required | DOM selector where search result will be pluged-in |
| homeUrl | current website url | Your ghost site url |
| contentApiKey | null Required | content api key |
| resultTemplate | see bellow | Result wrapper template for search result |
| singleResultTemplate | see bellow | Single search result template |
| excerpt_length | 250 | word count to show in ##excerpt variable |
| time_format | 'MMMM dd yyyy' | Time format string for ##published_at variable. Available formats |
Result Template
<ul class="search-results-wrapper">
<p>Search match(es): ##resultCount</p>
##results
</ul>
Single Result Template
<li><a href="##url">##title</a></li>
| Field Name | Purpose |
|---|---|
##title | Post title |
##url | Post url |
##primary_tag_name | Name of primary tag |
##primary_tag_url | Url of primary tag |
##primary_author_name | Name of primary author |
##primary_author_url | Profile url of primary author |
##primary_author_avater | Profile photo of primary author |
##excerpt | show some words of the post content. Default words count is 15 |
##published_at | Post publication date. Format can be change by time_format option |
##feature_image | Post featured image url |
##resultCount | Matched result count |
FAQs
The most advance ghost search plugin
We found that ghost-finder 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.