https://github.com/iguntur/google-contact
Create and export google contact to CSV or JSON
https://github.com/iguntur/google-contact
Last synced: 3 months ago
JSON representation
Create and export google contact to CSV or JSON
- Host: GitHub
- URL: https://github.com/iguntur/google-contact
- Owner: iguntur
- License: mit
- Created: 2019-04-05T14:36:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T17:37:45.000Z (about 6 years ago)
- Last Synced: 2025-02-08T09:51:19.782Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# google-contact
[](https://travis-ci.com/iguntur/google-contact)
[](https://www.npmjs.org/package/@guntur/google-contact)
[](https://nodejs.org)> Create and export google contact to CSV or JSON
---
## Install
```console
$ npm install @guntur/google-contact
```## Usage
```js
const googleContact = require('@guntur/google-contact');const person = googleContact.create({
name: 'John Doe',
givenName: 'John Doe'
phone: [
{
type: 'Mobile',
value: '+0000123456789'
}
]
});console.log(person);
/*
{
'Name': 'John Doe',
'Given Name': 'John Doe',
...
'Phone 1 - Type': 'Mobile',
'Phone 1 - Value': '+0000123456789',
...
}
*/
```## API
### googleContact
#### .create(`options: object`)
- Params:
- `options`: `` - _(required)_. See [state file](/lib/state.js) for all options.
- Returns: ``#### .export.toCSV(`options: object`)
#### .export.toJSON(`options: object`)- Params:
- `options`: `` - _(required)_
- `contacts`: ``
- `outputFilepath`: ``
- Returns: `void`## License
MIT © [Guntur Poetra](https://github.com/iguntur)