Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iguntur/google-contact
Create and export google contact to CSV or JSON
https://github.com/iguntur/google-contact
Last synced: about 12 hours 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T17:37:45.000Z (over 5 years ago)
- Last Synced: 2024-10-05T20:34:41.182Z (about 1 month 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
[![Build Status](https://travis-ci.com/iguntur/google-contact.svg?token=Gqg6SWkLJ3YyFSAu5i3M&branch=master)](https://travis-ci.com/iguntur/google-contact)
[![npm](https://img.shields.io/npm/v/@guntur/google-contact.svg?style=flat)](https://www.npmjs.org/package/@guntur/google-contact)
[![node](https://img.shields.io/node/v/@guntur/google-contact.svg?style=flat)](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)