Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public convert(str, options) {
if (!this.enabled) throw new Error('kuroshiro not initialized')
if (str && Kuroshiro.Util.hasJapanese(str)) return this.kuroshiro.convert(str, options)
return str
}
}