Package Exports
- @groceristar/groceristar-fetch
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@groceristar/groceristar-fetch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Groceristar-fetch module
Table of Contents
Synopsis
This is a module for using API like wrappers for getting food data for use in many projects. Just Like an database and fetch API in JS
Additional information
Trello board with current tasks
Installation
npm install @groceristar/groceristar-fetch
or
yarn add @groceristar/groceristar-fetch
Code Example
const { groceristar } = require('@groceristar/groceristar-fetch')
const departments = groceristar.getDepartments();
// returns an array of all departments
example
[
{
"name": "Fresh vegetables",
"type": "food"
},
{
"name": "Condiments / sauces",
"type": "food"
}
]The above code can be re-written as
const { groceristar, search, chiCkenKyiv, mealCalendar } = require('@groceristar/groceristar-fetch');
console.log(groceristar.getDepartments());
console.log(search.getAttribute('diets'));
import { groceristar, mealCalendar } from '@groceristar/groceristar-fetch'To Find out about all the functionality use https://groceristar.github.io/groceristar-fetch/.
Tasks:
- More uses of module https://github.com/standard/standard
Explore tools that community has
nodejs github automation stuff
- https://github.com/GoogleCloudPlatform/nodejs-repo-tools or https://github.com/GoogleCloudPlatform/nodejs-repo-tools/blob/master/src/build_packs/nodejs.js
- https://www.npmjs.com/package/download-git-repo !nice
- https://www.npmjs.com/package/github-download
- https://github.com/octokit/graphql.js
routes
https://octokit.github.io/routes/ https://github.com/octokit/routes
install back standard. right now it generates an error
"code-fix": "standard --fix"Tests
npm testContributors
@vadim9999, @MinkoJ2, @chauhannishith, @atherdon, @GuiFSs, @kraftaa, @aanchirinah
List of plugins related to this universe:
https://github.com/sheerun/babel-plugin-file-loader
Credits
Created with help of this articles: