@seagull/package-config

configuration management for seagull apps via package.json

Usage no npm install needed!

<script type="module">
  import seagullPackageConfig from 'https://cdn.skypack.dev/@seagull/package-config';
</script>

README

Seagull Package Config

Build Status npm version License: LGPL v3 styled with prettier TypeScript

Seagull leverages the default package.json file every node.js has for its own configurations. All settings reside in the seagull property and the access to these data fields is encapsulated through this module.

Example Usage

import { PackageJson } from '@seagull/package-config'

const pkg = new PackageJson('/path/to/file')
pkg.addDomain('example.com')
pkg.enableAnalytics('UA-XXXXXXX')

pkg.hasAnalytics // => true