4.4.5 • Published 1 month ago

@openaddresses/lib v4.4.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

General Usage

JS Library

npm add '@openaddresses/lib'

CLI

npm add --global @openaddresses/lib

Note: if the username & password is not explicitly set, OA will fallback to checking for a OA_USERNAME & OA_PASSWORD environment variable. For the url parameter, be sure to include the protocol and (if necessary) port number.

Alternatively an API token can be provided via a OA_TOKEN environment variable, or the server secret via the OA_SECRET variable.

JS Library

import OA from '@openaddresses/lib';

const oa = new OA({
    username: 'ingalls',
    password: 'yeaheh',
    url: 'http://example.openaddresses.io',
});

CLI

The CLI tool must be provided the URL to connect to for each subcommand. This can be accomplished by providing the URL to a local or remote OA server. Be sure to include the protocol and, for local connections, the port number.

# Connecting to a remote oa server
./cli.js --url 'https://example.openaddresses.io'
# Connecting to a local oa dev server
./cli.js --url 'http://localhost:5000'
4.4.5

1 month ago

4.4.4

10 months ago

4.4.3

1 year ago

2.4.2

1 year ago

4.2.8

2 years ago

4.4.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

4.1.0

2 years ago

2.7.0

2 years ago

4.0.0

2 years ago

4.2.0

2 years ago

2.8.0

2 years ago

2.6.0

2 years ago

2.5.4

2 years ago

2.5.3

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago