caroot:用根路径替换插入符号

时间:2021-05-06 14:24:16
【文件属性】:
文件名称:caroot:用根路径替换插入符号
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-06 14:24:16
JavaScript 卡鲁特 用根路径替换插入符号(最近的package.json) 用法 caroot(caretedPath,currentPath [,rootSubDirectory]) var caroot = require ( 'caroot' ) ; // assume we are 2 levels deeper than package.json caroot ( '^foo' , __dirname ) ; // returns '../../foo' // also takes an optional root sub directory caroot ( '^foo' , __dirname , './scripts' ) ; // returns '../foo'
【文件预览】:
caroot-master
----.gitignore(526B)
----README.md(398B)
----tests()
--------index.js(2KB)
----LICENSE(1KB)
----package.json(715B)
----index.js(679B)

网友评论