Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemanth/fetch-manifest-json
fetch manifest.json
https://github.com/hemanth/fetch-manifest-json
Last synced: 3 months ago
JSON representation
fetch manifest.json
- Host: GitHub
- URL: https://github.com/hemanth/fetch-manifest-json
- Owner: hemanth
- License: mit
- Created: 2016-06-17T13:37:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-23T23:34:45.000Z (over 1 year ago)
- Last Synced: 2024-10-10T11:54:59.255Z (3 months ago)
- Language: JavaScript
- Homepage: https://git.io/fetch-manifest-json
- Size: 16.6 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-pwa - `fetch-manifest-json`
- awesome-pwa - `fetch-manifest-json`
README
# fetch-manifest-json [![Build Status](https://travis-ci.org/hemanth/fetch-manifest-json.svg?branch=master)](https://travis-ci.org/hemanth/fetch-manifest-json)
> Fetch mainfest.json from a PWA.
## Install
``` sh
$ npm install --save fetch-manifest-json
```## Usage
```js
const fetchManifestJson = require('fetch-manifest-json');fetchManifestJson().then(console.log).catch(console.error);
```## CLI
``` sh
$ npm install --global fetch-manifest-json
`````` sh
$ fetch-manifest-json --helpUsage
fetch-manifest-json [URL]Example
$ fetch-manifest-json https://jsfeatures.in{ name: 'JSfeatures.in',
short_name: 'JSfeatures',
icons:
[ { src: 'images/touch/icon-128x128.png',
sizes: '128x128',
type: 'image/png' },
{ src: 'images/touch/apple-touch-icon.png',
sizes: '152x152',
type: 'image/png' },
{ src: 'images/touch/ms-touch-icon-144x144-precomposed.png',
sizes: '144x144',
type: 'image/png' },
{ src: 'images/touch/chrome-touch-icon-192x192.png',
sizes: '192x192',
type: 'image/png' } ],
start_url: '/',
display: 'standalone',
background_color: '#3E4EB8',
theme_color: '#00BCD4' }
```P.S: This module is extracted from [PWAify](https://github.com/vladikoff/PWAify)
## License
MIT © [Hemanth.HM](https://h3manth.com)