How to use the @google-cloud/language function in @google-cloud/language

To help you get started, we’ve selected a few @google-cloud/language examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RocketChat / Rocket.Chat / packages / rocketchat-google-natural-language / server / index.js View on Github external
RocketChat.settings.get('GoogleNaturalLanguage_ServiceAccount', (key, value) => {
	if (value) {
		try {
			languageClient = googleLanguage({
				credentials: JSON.parse(value),
			});
		} catch (e) {
			languageClient = null;
			console.error('Error parsing Google Natural Language credential.', e);
		}
	}
});

@google-cloud/language

Google Cloud Natural Language API client for Node.js

Apache-2.0
Latest version published 3 days ago

Package Health Score

92 / 100
Full package analysis