https://github.com/casheeeewnuts/chrome-extension-manifest-factory
A tool for typing to manifest-v3
https://github.com/casheeeewnuts/chrome-extension-manifest-factory
chrome-extension manifest-json manifest-v3
Last synced: 3 months ago
JSON representation
A tool for typing to manifest-v3
- Host: GitHub
- URL: https://github.com/casheeeewnuts/chrome-extension-manifest-factory
- Owner: casheeeewnuts
- License: mit
- Created: 2021-11-11T03:36:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-15T01:16:09.000Z (almost 4 years ago)
- Last Synced: 2025-07-01T01:03:31.102Z (3 months ago)
- Topics: chrome-extension, manifest-json, manifest-v3
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/chrome-extension-manifest-factory
- Size: 83 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chrome Extension Manifest Factory
A tool for writing manifest.json of Chrome Extension with type completion## Installation
```bash
npm i chrome-extension-manifest-factory
# or
yarn add chrome-extension-manifest-factory
```## Examples
define your extension's manifest.json in .ts file,
```typescript
// manifest.json.ts
import {Manifest} from "chrome-extension-manifest-factory"const json: Manifest.Json = {
// required fields
manifest_version: 3, // currently only v3 series are supported.
name: "Your Chrome Extension Name",
version: "1.0.0"
// optional fields...
}export default json
```either in .js file,
```javascript
/**
* @type {import("chrome-extension-manifest-factory").Manifest.Json}
*/
const json = {
// required fields
manifest_version: 3,
name: "Your Chrome Extension Name",
version: "1.0.0",
// optional fields...
}export default json
```then, execute next command
```bash
npm run manifest-factory ./manifest.json.js manifest.json
# or
yarn run manifest-factory ./manifest.json.ts manifest.json
```