You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bower](http://bower.io/) is a package manager for web application front-end libraries. JSforce is also available in bower. To install JSforce via bower, type following in your project root:
37
-
38
-
```
39
-
$ bower install jsforce
40
-
```
41
-
42
-
You'll get the JSforce script files in `bower_components` directory, so write a tag in HTML to include the file.
Copy file name to clipboardExpand all lines: src/documents/start/index.html.md.eco
+24-55
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ so you can learn the usage without hassle.
24
24
- [Apex REST](/document/#apex-rest)
25
25
- [Analytics API](/document/#analytics-api)
26
26
- [Bulk API](/document/#bulk-api)
27
+
- [Bulk 2.0 API](/document/#bulk-v2-api)
27
28
- [Chatter API](/document/#chatter-api)
28
29
- [Metadata API](/document/#metadata-api)
29
30
- [Streaming API](/document/#streaming-api)
@@ -39,14 +40,24 @@ If you want to use JSforce as an API library in your Node.js project, install it
39
40
$ npm install jsforce
40
41
```
41
42
43
+
NOTE:
44
+
the `jsforce` npm package includes the browser bundles + minified builds, TS source code and other deps that will not be used in a Node.js environment.
45
+
For these cases we provide a slim, node-only package that strips these artifacts and deps.
46
+
47
+
``` shell
48
+
$ npm install @jsforce/jsforce-node
49
+
```
50
+
51
+
Aside from being smaller, there's no API differences between `jsforce` and `jsforce-node`.
52
+
42
53
When you installed JSforce, you can import using `require('jsforce')` in your Node.js application code.
43
54
44
55
``` javascript
45
-
var jsforce = require('jsforce');
46
-
var conn = new jsforce.Connection();
56
+
const jsforce = require('jsforce');
57
+
const conn = new jsforce.Connection();
47
58
```
48
59
49
-
Details for establishing API connection are written in the [document](/document/#connection) and options are in [API reference](/jsforce/doc/Connection.html).
60
+
Details for establishing API connection are written in the [document](/document/#connection) and options are in [API reference](/jsforce/classes/connection.Connection.html).
50
61
51
62
52
63
### Web Browser
@@ -61,7 +72,7 @@ If you want to use JSforce in web browser JavaScript,
61
72
Or you can use public CDN to include script directly to your web site.
0 commit comments