@the-/setting

15.4.13 • Public • Published

@the-/setting

npm Version

Setting manager for the-framework

Installation

$ npm install @the-/setting --save

Usage

'use strict'

const theSetting = require('@the-/setting')

async function tryExample() {
  const setting = theSetting('.setting.json', {
    foo: 1,
  })

  setting.set({ foo: 2 })

  console.log(setting.get('foo')) // -> 2
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/setting

Weekly Downloads

1

Version

15.4.13

License

MIT

Unpacked Size

78.8 kB

Total Files

25

Last publish

Collaborators

  • okunishinishi