recursive-add-prefix
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

recursive-add-prefix

npm version

Usage

yarn add recursive-add-prefix
import { addPrefix } from "recursive-add-prefix";

const pathMap = {
  a: "/a/b/c",
  b: {
    c: "/abc",
  },
};

addPrefix("https://example.com", pathMap);
// {
//   a: "https://example.com/a/b/c",
//   b: {
//     c: "https://example.com/abc",
//   },
// }

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i recursive-add-prefix

Weekly Downloads

1

Version

0.1.12

License

MIT

Unpacked Size

7.86 kB

Total Files

7

Last publish

Collaborators

  • himenoglyph