1.0.5 • Published 2 years ago

path-to-json v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
2 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

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago