1.0.6 • Published 5 years ago

baresip-configurator v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

BareSIP Configurator

Install

$ npm install baresip-configurator

AccountsEditor

Usage

import { AccountsEditor } from 'baresip-configurator';

const editor = new AccountsEditor();

Methods

  • add (settingLineString) adds a setting
  • get (settingName) returns the setting value
  • set(settingName, value) sets the setting value
  • save (fileName, basePath) writes the editor data to the file

Settings

  • username
  • password
  • server
  • port

ConfigEditor

Usage

import { ConfigEditor } from 'baresip-configurator';

const editor = new ConfigEditor();

Methods

  • add (settingLineString) adds a setting
  • get (settingName) returns the setting value
  • set (settingName, value) sets the setting value
  • isCommented (settingName, valueBeginWith) returns true if the setting is commented
  • uncomment (settingName, valueBeginWith) uncomments the setting
  • save (fileName, basePath) writes the editor data to the file
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago