
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
metalsmith-date-formatter
Advanced tools
Format article/post dates based on YAML Front Matter (YFM) data and moment
npm install --save-dev metalsmith-date-formatter
Front Matter:
---
publishDate: 2015-05-30
modifedDate: 2015-05-31
---
JavaScript API:
var Metalsmith = require('metalsmith');
var dateFormatter = require('metalsmith-date-formatter');
Metalsmith()
.use(dateFormatter());
In your template::
<p>published: {{ publishDate }}</p>
<p>last modified: {{ modifiedDate }}</p>
This option takes multiple formats
array of objects with key
and format
properties.
key
property is the YFM property nameformat
property is optional but takes any moment format value.use(dateFormatter({
dates: [
{
key: 'publishDate',
format: 'MM DD YYYY'
},
{
key: 'modifiedDate',
format: 'MM YYYY'
}
]
})
array of strings
.use(dateFormatter({
dates: ['publishDate', 'modifiedDate']
})
string
.use(dateFormatter({
dates: 'publishDate'
})
Any date format that moment
accepts, defaults to MMMM DD, YYYY
The metalsmith cli workflow has not been tested
FAQs
format dates
The npm package metalsmith-date-formatter receives a total of 21 weekly downloads. As such, metalsmith-date-formatter popularity was classified as not popular.
We found that metalsmith-date-formatter 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.