Skip to content

afrontend/csv-property

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT Licence

csv-property

Convert CSV string to JSON object

Convert JSON object to CSV string

CSV string: "path1, path2, path3, string"

// From
'popup, title, Login'

// To
{
  popup: {
    title: 'Login'
  }
}

Install

npm install csv-property

Usage

const { toObject, toCSVString } = require('csv-property')
toObject([ 'popup, title, Login' ]) // { popup: { title: 'Login' } }
toCSVString({ popup: { title: 'Login' } }) // [ 'popup, title, Login' ]
toObject([ 'popup; title; Login' ], ';') // { popup: { title: 'Login' } }
toCSVString({ popup: { title: 'Login' } }, ';') // [ 'popup; title; Login' ]

License

MIT © Bob Hwang

About

CSV 파일 사용하여 다국어 JSON 파일 만들기

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published