Skip to content

Commit

Permalink
readme and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Oct 18, 2022
1 parent 4bc15c2 commit de05f25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ A **free** and **unlimited** API for Google Translate for Node.js.

<!-- toc -->

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
* [Usage with proxy](#usage-with-proxy)
* [Usage in react-native](#usage-in-react-native)
* [Usage in browser](#usage-in-browser)
- [API](#api)
- [Related projects](#related-projects)
- [License](#license)
- [google-translate-api](#google-translate-api)
- [Contents](#contents)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Usage with proxy](#usage-with-proxy)
- [Usage in react-native](#usage-in-react-native)
- [Usage in browser](#usage-in-browser)
- [API](#api)
- [Related projects](#related-projects)
- [License](#license)

<!-- tocstop -->

Expand All @@ -39,7 +41,7 @@ npm install @vitalets/google-translate-api
import { translate } from '@vitalets/google-translate-api';

const { text } = await translate('Привет, мир! Как дела?', { to: 'en' });
// text => 'Hello World! How are you?'
console.log(text) // => 'Hello World! How are you?'
```

### Usage with proxy
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"build": "npm run build:esm && npm run build:cjs",
"release": "npm run lint && npm t && npm run build && np --yolo --no-release-draft"
},
"lint-staged": {
"{src,test}/**/*.ts": "eslint --ext .ts"
},
"dependencies": {
"@types/http-errors": "^1.8.2",
"http-errors": "^2.0.0",
Expand Down

0 comments on commit de05f25

Please sign in to comment.