Skip to content

Commit 2581acd

Browse files
authored
Merge pull request #856 from watson-developer-cloud/publish-to-ibm-watson
Publish to ibm-watson
2 parents 35a40e0 + 9f9de1c commit 2581acd

38 files changed

+17328
-3565
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[![Build Status](https://secure.travis-ci.org/watson-developer-cloud/node-sdk.svg)](http://travis-ci.org/watson-developer-cloud/node-sdk)
44
[![codecov](https://codecov.io/gh/watson-developer-cloud/node-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/watson-developer-cloud/node-sdk)
55
[![Slack](https://wdc-slack-inviter.mybluemix.net/badge.svg)](https://wdc-slack-inviter.mybluemix.net)
6-
[![npm-version](https://img.shields.io/npm/v/watson-developer-cloud.svg)](https://www.npmjs.com/package/watson-developer-cloud)
7-
[![npm-downloads](https://img.shields.io/npm/dm/watson-developer-cloud.svg)](https://www.npmjs.com/package/watson-developer-cloud)
6+
[![npm-version](https://img.shields.io/npm/v/ibm-watson.svg)](https://www.npmjs.com/package/ibm-watson)
7+
[![npm-downloads](https://img.shields.io/npm/dm/ibm-watson.svg)](https://www.npmjs.com/package/ibm-watson)
88
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
99

1010
Node.js client library to use the Watson APIs.
@@ -53,7 +53,7 @@ Node.js client library to use the Watson APIs.
5353
## Installation
5454

5555
```sh
56-
npm install watson-developer-cloud
56+
npm install ibm-watson
5757
```
5858

5959
## Usage
@@ -115,7 +115,7 @@ The file downloaded will be called `ibm-credentials.env`. This is the name the S
115115
As long as you set that up correctly, you don't have to worry about setting any authentication options in your code. So, for example, if you created and downloaded the credential file for your Discovery instance, you just need to do the following:
116116

117117
```js
118-
const DiscoveryV1 = require('watson-developer-cloud/discovery/v1');
118+
const DiscoveryV1 = require('ibm-watson/discovery/v1');
119119
const discovery = new DiscoveryV1({ version: '2019-02-01' });
120120
```
121121

@@ -180,7 +180,7 @@ discovery.setAccessToken('<access-token>')
180180
### Username and password
181181

182182
```javascript
183-
var DiscoveryV1 = require('watson-developer-cloud/discovery/v1');
183+
var DiscoveryV1 = require('ibm-watson/discovery/v1');
184184

185185
var discovery = new DiscoveryV1({
186186
version: '{version}',
@@ -347,7 +347,7 @@ Note that the token is supplied URL-encoded, and will not be accepted if it is d
347347
The Authorization SDK now supports returning IAM Access Tokens when instantiated with an IAM API key.
348348

349349
```javascript
350-
var watson = require('watson-developer-cloud');
350+
var watson = require('ibm-watson');
351351

352352
// to get an IAM Access Token
353353
var authorization = new watson.AuthorizationV1({
@@ -389,7 +389,7 @@ Use the [Assistant][conversation] service to determine the intent of a message.
389389
Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details.
390390

391391
```js
392-
var AssistantV2 = require('watson-developer-cloud/assistant/v2');
392+
var AssistantV2 = require('ibm-watson/assistant/v2');
393393

394394
var assistant = new AssistantV2({
395395
username: '<username>',
@@ -421,7 +421,7 @@ Use the [Assistant][assistant] service to determine the intent of a message.
421421
Note: You must first create a workspace via IBM Cloud. See [the documentation](https://console.bluemix.net/docs/services/conversation/index.html#about) for details.
422422

423423
```js
424-
var AssistantV1 = require('watson-developer-cloud/assistant/v1');
424+
var AssistantV1 = require('ibm-watson/assistant/v1');
425425

426426
var assistant = new AssistantV1({
427427
username: '<username>',
@@ -451,7 +451,7 @@ Use the Compare Comply service to compare and classify documents.
451451

452452
```javascript
453453
const fs = require('fs');
454-
const CompareComplyV1 = require('watson-developer-cloud/compare-comply/v1');
454+
const CompareComplyV1 = require('ibm-watson/compare-comply/v1');
455455

456456
const compareComply = new CompareComplyV1({
457457
iam_apikey: '<iam_apikey>',
@@ -484,7 +484,7 @@ compareComply.compareDocuments(
484484
Use the [Discovery Service][discovery] to search and analyze structured and unstructured data.
485485

486486
```javascript
487-
var DiscoveryV1 = require('watson-developer-cloud/discovery/v1');
487+
var DiscoveryV1 = require('ibm-watson/discovery/v1');
488488

489489
var discovery = new DiscoveryV1({
490490
username: '<username>',
@@ -515,7 +515,7 @@ discovery.query(
515515
Translate text from one language to another or idenfity a language using the [Language Translator][language_translator] service.
516516

517517
```javascript
518-
const LanguageTranslatorV3 = require('watson-developer-cloud/language-translator/v3');
518+
const LanguageTranslatorV3 = require('ibm-watson/language-translator/v3');
519519

520520
const languageTranslator = new LanguageTranslatorV3({
521521
iam_apikey: '<apikey>',
@@ -557,7 +557,7 @@ languageTranslator.identify(
557557
Use [Natural Language Classifier](https://console.bluemix.net/docs/services/natural-language-classifier/getting-started.html) service to create a classifier instance by providing a set of representative strings and a set of one or more correct classes for each as training. Then use the trained classifier to classify your new question for best matching answers or to retrieve next actions for your application.
558558
559559
```javascript
560-
var NaturalLanguageClassifierV1 = require('watson-developer-cloud/natural-language-classifier/v1');
560+
var NaturalLanguageClassifierV1 = require('ibm-watson/natural-language-classifier/v1');
561561

562562
var classifier = new NaturalLanguageClassifierV1({
563563
username: '<username>',
@@ -590,7 +590,7 @@ Use Natural Language Understanding is a collection of natural language processin
590590
591591
```javascript
592592
var fs = require('fs');
593-
var NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-language-understanding/v1.js');
593+
var NaturalLanguageUnderstandingV1 = require('ibm-watson/natural-language-understanding/v1.js');
594594

595595
var nlu = new NaturalLanguageUnderstandingV1({
596596
username: '<username>',
@@ -624,7 +624,7 @@ Analyze text in English and get a personality profile by using the
624624
[Personality Insights][personality_insights] service.
625625
626626
```javascript
627-
var PersonalityInsightsV3 = require('watson-developer-cloud/personality-insights/v3');
627+
var PersonalityInsightsV3 = require('ibm-watson/personality-insights/v3');
628628

629629
var personalityInsights = new PersonalityInsightsV3({
630630
username: '<username>',
@@ -655,7 +655,7 @@ personalityInsights.profile(
655655
Use the [Speech to Text][speech_to_text] service to recognize the text from a `.wav` file.
656656
657657
```javascript
658-
var SpeechToTextV1 = require('watson-developer-cloud/speech-to-text/v1');
658+
var SpeechToTextV1 = require('ibm-watson/speech-to-text/v1');
659659
var fs = require('fs');
660660

661661
var speechToText = new SpeechToTextV1({
@@ -689,7 +689,7 @@ fs.createReadStream('./resources/speech.wav')
689689
Use the [Text to Speech][text_to_speech] service to synthesize text into an audio file.
690690
691691
```js
692-
var TextToSpeechV1 = require('watson-developer-cloud/text-to-speech/v1');
692+
var TextToSpeechV1 = require('ibm-watson/text-to-speech/v1');
693693
var fs = require('fs');
694694

695695
var textToSpeech = new TextToSpeechV1({
@@ -732,7 +732,7 @@ Use the [Tone Analyzer][tone_analyzer] service to analyze the
732732
emotion, writing and social tones of a text.
733733
734734
```js
735-
var ToneAnalyzerV3 = require('watson-developer-cloud/tone-analyzer/v3');
735+
var ToneAnalyzerV3 = require('ibm-watson/tone-analyzer/v3');
736736

737737
var toneAnalyzer = new ToneAnalyzerV3({
738738
username: '<username>',
@@ -765,7 +765,7 @@ following picture.
765765
<img src="https://visual-recognition-demo.ng.bluemix.net/images/samples/5.jpg" />
766766
767767
```js
768-
var VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3');
768+
var VisualRecognitionV3 = require('ibm-watson/visual-recognition/v3');
769769
var fs = require('fs');
770770

771771
var visualRecognition = new VisualRecognitionV3({
@@ -799,7 +799,7 @@ By default, the library tries to authenticate and will ask for `iam_apikey`, `ia
799799
`use_unauthenticated`.
800800
801801
```javascript
802-
var watson = require('watson-developer-cloud');
802+
var watson = require('ibm-watson');
803803

804804
var assistant = new watson.AssistantV1({
805805
use_unauthenticated: true
@@ -850,7 +850,7 @@ See [CONTRIBUTING](https://github.com/watson-developer-cloud/node-sdk/blob/maste
850850
[language_translator]: https://www.ibm.com/watson/services/language-translator/
851851
[ibm_cloud]: https://console.bluemix.net
852852
[watson-dashboard]: https://console.bluemix.net/dashboard/apps?category=watson
853-
[npm_link]: https://www.npmjs.com/package/watson-developer-cloud
853+
[npm_link]: https://www.npmjs.com/package/ibm-watson
854854
[request_github]: https://github.com/request/request
855855
[examples]: https://github.com/watson-developer-cloud/node-sdk/tree/master/examples
856856
[document_conversion_integration_example]: https://github.com/watson-developer-cloud/node-sdk/tree/master/examples/document_conversion_integration.v1.js

UPGRADE-4.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Upgrading to watson-developer-cloud@4.0
1+
# Upgrading to ibm-watson@4.0
22
- [Breaking changes](#breaking-changes)
33
- [Methods no longer return stream](#methods-no-longer-return-stream)
44
- [Error Handling Compatibility](#error-handling-compatibility)

examples/assistant.v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var AssistantV1 = require('watson-developer-cloud/assistant/v1');
3+
var AssistantV1 = require('ibm-watson/assistant/v1');
44

55
/**
66
* Instantiate the Watson Assistant Service

0 commit comments

Comments
 (0)