salesforce-ip-addresses
v1.0.1
Published
A module to expose the list of Salesforce IP addresses from the official docs https://help.salesforce.com/s/articleView?id=000321501&type=1
Downloads
763
Readme
salesforce-ip-addresses
An array representing the Salesforce IP Addresses to Allow
, from SFDC docs. Use this when in need of allow-listing these IP addresses. Contributions to keep this list updated are welcome 😀.
Last update: 2021-10-25. If the last update on this doc is higher than this date, consider updating this repo.
Install
npm install salesforce-ip-addresses --save
Usage
This module export, as Default and Named, an array containing the IP addresses.
const SALESFORCE_IP_RANGE = require('salesforce-ip-addresses');
// or
import SALESFORCE_IP_RANGE from 'salesforce-ip-addresses';
// or
import { SALESFORCE_IP_RANGE } from 'salesforce-ip-addresses';
console.log(SALESFORCE_IP_RANGE);
Running tests
Assert, after making your changes, that this repo is exporting as expected via npm run test
Building
npm run build
Outputs a commonjs-compatible bundle to dist/index.js
.
While developing, you can also run npm run watch
to continually build as you save files.
Publishing
Merging to master will automatically publish the package if commits with non-trivial changes have been introduced (per commit conventions).