This repository was archived by the owner on Jul 13, 2023. It is now read-only.
Releases: googleapis/nodejs-language
Releases · googleapis/nodejs-language
@google-cloud/language v0.4.0
Breaking Changes
Promises have arrived!
It's been a long time coming, but we're finally here. We've shipped promise support in the Google Cloud Natural Language module!
Do I have to use promises?
Nope, carry on.
How do I use promises?
Don't pass a callback:
var language = require('@google-cloud/language')();
language.detectEntities('We promise this will work!')
.then(data => {
var entities = data[0];
})
.catch(err => {});