path-object:使用路径访问对象键

时间:2021-06-23 08:19:54
【文件属性】:
文件名称:path-object:使用路径访问对象键
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-23 08:19:54
JavaScript 路径对象 安装 $ npm install -S path-object 例子 var PathObject = require ( 'path-object' ) ( ) var fileObj = new PathObject ( ) fileObj . set ( 'path/to/file1' , 'file1 content' ) fileObj . set ( 'path/to/file2' , 'file2 content' ) fileObj . set ( 'path/to/my/extra/info' , 'more info' ) fileObj . set ( 'another/path/to/file' , 'another file content' ) console . log ( 'dump:' , fileObj . dump ( ) ) fileO
【文件预览】:
path-object-master
----.gitignore(14B)
----README.md(843B)
----package.json(899B)
----index.js(3KB)
----test.js(3KB)
----.travis.yml(655B)

网友评论