Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.08 KB

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