Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shu223/csv2plist

Script to convert CSV file to plist file.
https://github.com/shu223/csv2plist

Last synced: 5 days ago
JSON representation

Script to convert CSV file to plist file.

Awesome Lists containing this project

README

        

#csv2plist

Simple script to convert CSV file to plist file.

##Usage

````
$ php csv2plist.php hoge.csv
````

When the CSV file has title row, use -t option.

````
$ php csv2plist.php -t hoge.csv
````

##Example

(sample.csv)

````
id,name,age,birth
0,tsutsumi,32,5/26
1,sato,27,1/11
2,tanaka,21,11/3
````

(command)

````
$ php csv2plist.php -t sample.csv
````

(generated plist)

````


id
0
name
tsutsumi
age
32
birth
5/26


id
1
name
sato
age
27
birth
1/11


id
2
name
tanaka
age
21
birth
11/3

````

##License

MIT