Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export categories with the npm module #298

Closed
zeke opened this issue Sep 14, 2017 · 0 comments
Closed

export categories with the npm module #298

zeke opened this issue Sep 14, 2017 · 0 comments

Comments

@zeke
Copy link
Contributor

zeke commented Sep 14, 2017

...so the website doesn't have to deal with it.

Example:

[
   {
      "count": 4,
      "name": "Books",
      "slug": "books"
    },
    {
      "count": 7,
      "name": "Business",
      "slug": "business"
    },
    {
      "count": 72,
      "name": "Developer Tools",
      "slug": "developer-tools"
    }
]

We can use the already-depended-on slugg to generate the slugs.

To avoid making this a breaking change, we can just keep the default behavior for require('electron-apps') and access the categories using require('electron-apps/categories')

cc @jkleinsc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant