1.0.5 • Published 4 years ago

path-to-json v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

path-to-json

Convert /path/to/file to {path:{to:{file:{}}}}

Install

$ npm install path-to-json

Usage

const pathToJSON=require("path-to-json")
const data=[
    'any/path/to/file/or/folder',
    'other/path/to/file/or/folder'
]
const extraData='anything' //optional
const converted=pathToJSON(data,extraData)
console.log(JSON.stringify(converted,null,4))
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago