0.1.2 • Published 6 months ago

astro-npm-loader v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Astro NPM Loader

Load information about NPM packages into a content collection

How To

// src/content/config.ts
import { npmLoader } from 'astro-npm-loader';
import { defineCollection } from 'astro:content';

const npm = defineCollection({
    loader: npmLoader({ username: '$$your_username$$' }),
});

export const collections = {
    npm
};

Users tested with

Found a bug? Create an issue with the username and we'll get to fixing it!

TODO:

  • Include download stats
  • Test against users with multiple pages of packages
  • Tests?
  • Improve typing
0.1.2

6 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago