0.5.29 • Published 2 years ago
@shawnsandy/npm_info v0.5.29
NPM Package Info
Eleventy filter that grabs and returns npm package details
Example
Name: Vue Description Reactive, component-oriented view layer for modern web interfaces. Version 2.6.10 Stars Count 138764 Open issues 281
Usage
- Add the following to your
eleventy.js
config file
const npmInfo = require("npm_package_info")
- In the
module.exports
section of youreleventy.js
file add a nunjucks filtereleventyConfig.addNunjucksAsyncFilter( "npm", _npm);
module.exports = function(eleventyConfig) {
/**
* Get the npm package info
*/
eleventyConfig.addNunjucksAsyncFilter( "npm", _npm);
}
Use the filter in your template
{{ package | packageDownloads | safe }}
License: MIT
TODO
- refactor remove safe require filter
- complete docs
- Add configuration options
- write test
- more
0.5.32
2 years ago
0.5.30
2 years ago
0.5.31
2 years ago
0.5.29
2 years ago
0.5.27
2 years ago
0.5.25
2 years ago
0.5.26
2 years ago
0.5.23
2 years ago
0.5.24
2 years ago
0.5.22
3 years ago
0.5.21
3 years ago
0.5.20
3 years ago
0.5.19
3 years ago
0.5.18
3 years ago
0.5.17
3 years ago
0.5.15
3 years ago
0.5.14
3 years ago
0.5.13
3 years ago
0.5.10
4 years ago
0.5.8
4 years ago
0.5.7
4 years ago
0.5.4
4 years ago
0.5.3
4 years ago
0.5.2
4 years ago
0.5.1
4 years ago
0.4.6
5 years ago
0.4.3
5 years ago
0.4.2
5 years ago
0.4.0
5 years ago
0.3.2
5 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.0
5 years ago