1.0.6 • Published 6 years ago

baresip-configurator v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago