Skip to content
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.snyk
.travis.yml
cli.js
index.js
license
package.json
readme.md
test.js

readme.md

fetch-manifest-json Build Status

Fetch mainfest.json from a PWA.

Install

$ npm install --save fetch-manifest-json

Usage

const fetchManifestJson = require('fetch-manifest-json');

fetchManifestJson(<URL>).then(console.log).catch(console.error);

CLI

$ npm install --global fetch-manifest-json
$ fetch-manifest-json --help

	Usage
		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

License

MIT © Hemanth.HM

You can’t perform that action at this time.