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

Dependencies (0)

    Dev Dependencies (26)

    Package Sidebar

    Install

    npm i recursive-add-prefix

    Weekly Downloads

    0

    Version

    0.1.12

    License

    MIT

    Unpacked Size

    7.86 kB

    Total Files

    7

    Last publish

    Collaborators

    • himenoglyph