0.0.1 • Published 6 years ago

phonebook-generator v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

phonebook-generator

Multi vendor XML phonebook generator

Digium, Yealink, Grandstream, Fanvil, Snom, Htek

install

npm install phonebook-generator

usage

const { DigiumGenerator, 
        YealinkGenerator, 
        GrandstreamGenerator,
        FanvilGenerator, 
        SnomGenerator, 
        HtekGenerator,
      } = require('phonebook-generator')


let generator = new DigiumGenerator();
let arrayOfContacts = [
    {
        name: 'Vasiliy',
        phone: '110'
    },
    {
        name: 'Anton',
        phone: '121'
    }
];

generator.prepareXML(arrayOfContacts).then(xml => console.log(xml))