0.5.29 • Published 3 years ago

@shawnsandy/npm_info v0.5.29

Weekly downloads
41
License
MIT
Repository
github
Last release
3 years ago

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 your eleventy.js file add a nunjucks filter eleventyConfig.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

3 years ago

0.5.30

3 years ago

0.5.31

3 years ago

0.5.29

3 years ago

0.5.27

3 years ago

0.5.25

3 years ago

0.5.26

3 years ago

0.5.23

3 years ago

0.5.24

3 years ago

0.5.22

4 years ago

0.5.21

4 years ago

0.5.20

4 years ago

0.5.19

4 years ago

0.5.18

4 years ago

0.5.17

4 years ago

0.5.15

4 years ago

0.5.14

4 years ago

0.5.13

4 years ago

0.5.10

5 years ago

0.5.8

5 years ago

0.5.7

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.4.6

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago