npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

polyfiller-catalog

v0.0.31

Published

A database for polyfill combinators

Downloads

2,642

Readme

polyfiller-catalog

npm version Build Status Dependency Status License

A database for polyfill combinators

For more details see the Polyfiller documentation

Getting Started

This package requires Node ~0.10.0

If you haven't used npm before, be sure to check out the Getting Started guide, as it explains how to install npm and use a package.json file. Once you're familiar with that process, you may install this package with this command:

npm install polyfiller-catalog --save-dev

Once the package has been installed, it may be used inside your files with this line of JavaScript:

var catalog = require('polyfiller-catalog');

Usage Example

catalog.SOURCES; // ['./files/']
catalog.MODULES; // ['./node_modules', './bower_components']

Tests

grunt test

File structure

Required file structure for each new package:

catalog
	Promise
		index.json
		index.js

index.json

{
	"name": "Promise"
}

There are dependencies?

"dependencies": ["window.setImmediate"]

index.js

module.exports = [
	{
		type: 'npm',
		name: 'es6-promises'
	}
];

type:

Type: string [npm | bower | file] Default: None

name:

Type: string Default: None

package.json

Use dependencies and bundleDependencies for new features located in npm

{
	"dependencies": {
		"es6-promises": "^1.0.10"
	},

	"bundleDependencies": [
		"es6-promises"
	]
}

bower.json

Use dependencies for new features located in bower

{
	"dependencies": {
		"es6-promises": "1.0.10"
	}
}

The files are located locally?

catalog
	Promise
		files
			index.js — your polyfill

		index.json
		index.js
// index.js

var path = require('path');

module.exports = [
	{
		type: 'file',
		name: path.join(__dirname, './files/index.js')
	}
];

Contributing

  1. Fork the one
  2. Create a topic branch
  3. Read about file structure above
  4. Make your commits
  5. Write the tests (for new functionality)
  6. Run npm test
  7. Submit Pull Request once Tests are Passing

License

MIT

Task submitted by Alexander Abashkin