<commit_before># TaxJar Sales Tax API for Node [![NPM Module](http://img.shields.io/npm/v/taxjar.svg?style=flat-square)](https://npmjs.org/package/taxjar) [![Build Status](http://img.shields.io/travis/taxjar/taxjar-node.svg?style=flat-square)](https://travis-ci.org/taxjar/taxjar-node) [![Known Vulnerabilities](https://snyk.io/test/github/taxjar/taxjar-node/badge.svg)](https://snyk.io/test/github/taxjar/taxjar-node)

Official Node client for Sales Tax API v2. For the API documentation, please visit [https://developers.taxjar.com/api/reference/](https://developers.taxjar.com/api/reference/?javascript).

## Requirements

- Node.js v4.0 and later.

## Installation

```
npm install taxjar
```

## Authentication

```javascript
// ES5 Import
const Taxjar = require('taxjar');

// ES6/7 Import<commit_msg>Update README for ES6 / CommonJS interop<commit_after># TaxJar Sales Tax API for Node [![NPM Module](http://img.shields.io/npm/v/taxjar.svg?style=flat-square)](https://npmjs.org/package/taxjar) [![Build Status](http://img.shields.io/travis/taxjar/taxjar-node.svg?style=flat-square)](https://travis-ci.org/taxjar/taxjar-node) [![Known Vulnerabilities](https://snyk.io/test/github/taxjar/taxjar-node/badge.svg)](https://snyk.io/test/github/taxjar/taxjar-node)

Official Node client for Sales Tax API v2. For the API documentation, please visit [https://developers.taxjar.com/api/reference/](https://developers.taxjar.com/api/reference/?javascript).

## Requirements

- Node.js v4.0 and later.

## Installation

```
npm install taxjar
```

## Authentication

```javascript
// ES5 Import
const Taxjar = require('taxjar');

// ES6/7 Import
// Using TypeScript? Pass `esModuleInterop` in tsconfig.json
// https://www.typescriptlang.org/docs/handbook/compiler-options.html
{'fraction_non_alphanumeric': 0.17325056433408578, 'fraction_numerical': 0.007336343115124154, 'mean_word_length': 4.851485148514851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 13, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4644220', 'n_tokens_mistral': 637, 'n_tokens_neox': 604, 'n_words': 103}