'use strict';
var PinyinHelper = require('./lib/PinyinHelper');
var ChineseHelper = require('./lib/ChineseHelper');
var PinyinFormat = require('./lib/PinyinHelper');

var pinyin4js = {
    WITH_TONE_MARK      :"WITH_TONE_MARK",   //带声调
    WITHOUT_TONE        :"WITHOUT_TONE",     //不带声调
    WITH_TONE_NUMBER    :"WITH_TONE_NUMBER", //数字代表声调
    FIRST_LETTER        :"FIRST_LETTER",      //首字母风格

    convertToPinyinString(str, separator, format) {
        return PinyinHelper.PinyinHelper.convertToPinyinString(str, separator, format)
    },

    convertToSimplifiedChinese(str) {
        return ChineseHelper.ChineseHelper.convertToSimplifiedChinese(str)
    },

    convertToTraditionalChinese(str) {
        return ChineseHelper.ChineseHelper.convertToTraditionalChinese(str)
    },

    getShortPinyin(str) {
        return PinyinHelper.PinyinHelper.getShortPinyin(str)
    }
}

;(function(){
    global.PinyinHelper = PinyinHelper.PinyinHelper;
    global.ChineseHelper = ChineseHelper.ChineseHelper;
    global.PinyinFormat = PinyinFormat.PinyinFormat;
})();

module.exports = pinyin4js


'use strict';
var PinyinHelper = require('./lib/PinyinHelper');
var ChineseHelper = require('./lib/ChineseHelper');
var PinyinFormat = require('./lib/PinyinHelper');

var pinyin4js = {
    WITH_TONE_MARK      :"WITH_TONE_MARK",   //带声调
    WITHOUT_TONE        :"WITHOUT_TONE",     //不带声调
    WITH_TONE_NUMBER    :"WITH_TONE_NUMBER", //数字代表声调
    FIRST_LETTER        :"FIRST_LETTER",      //首字母风格

    convertToPinyinString: function(str, separator, format) {
        return PinyinHelper.PinyinHelper.convertToPinyinString(str, separator, format);
    },

    convertToSimplifiedChinese: function(str) {
        return ChineseHelper.ChineseHelper.convertToSimplifiedChinese(str);
    },

    convertToTraditionalChinese: function(str) {
        return ChineseHelper.ChineseHelper.convertToTraditionalChinese(str);
    },

    getShortPinyin: function(str) {
        return PinyinHelper.PinyinHelper.getShortPinyin(str);
    }
}

;(function(){
    global.PinyinHelper = PinyinHelper.PinyinHelper;
    global.ChineseHelper = ChineseHelper.ChineseHelper;
    global.PinyinFormat = PinyinFormat.PinyinFormat;
})();

module.exports = pinyin4js


Switch the format ES6 back to ES5 to make it compatible with IE11
Switch the format ES6 back to ES5 to make it compatible with IE11
