Socket
Socket
Sign inDemoInstall

hexo-generator-recent

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-generator-recent - npm Package Compare versions

Comparing version 0.1.0 to 0.1.3

9

index.js

@@ -1,3 +0,4 @@

var _ = require('underscore')
var util = require('util')
'use strict'
const _ = require('lodash')
const util = require('util')

@@ -35,2 +36,3 @@ //defaults

hexo.extend.generator.register('generatorRecent', function(locals) {
var posts = []

@@ -46,2 +48,3 @@ var options

}
let space = options.prettyPrint ? ' ' : ''
circular = _.intersection(options.fields, circular)

@@ -76,4 +79,4 @@

path: options.file,
data: JSON.stringify(posts)
data: JSON.stringify(posts, null, space)
}
})
{
"name": "hexo-generator-recent",
"version": "0.1.0",
"version": "0.1.3",
"description": "Creates a list of recent articles in JSON",

@@ -25,4 +25,4 @@ "main": "index.js",

"dependencies": {
"underscore": "^1.8.3"
"lodash": "^4.11.1"
}
}

@@ -6,2 +6,6 @@ # hexo-generator-recent

## Unmaintained
Please open an issue if you would like to take ownership.
## Installation

@@ -25,6 +29,6 @@

```yaml
jsonContent:
file: `recent.json`
generatorRecent:
file: recent.json
number: 5
sort: `-date`
sort: -date
fields: # set to true for all fields (default)

@@ -31,0 +35,0 @@ - title

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