Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@knit/path-join

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knit/path-join - npm Package Compare versions

Comparing version 0.0.0-5bd66a9 to 0.0.0-monorepo

13

__tests__/unit.test.js

@@ -0,3 +1,4 @@

"use strict";
/* flow */
const path = require("path");

@@ -12,11 +13,7 @@

it("create path when passed scoped module", () => {
expect(pj("foo", "bar", "@scope/package")).toBe(
path.join("foo", "bar", "@scope", "package")
);
expect(pj("foo", "bar", "@scope/package")).toBe(path.join("foo", "bar", "@scope", "package"));
});
it("keep abs path", () => {
expect(pj("/foo", "bar", "package")).toBe(
path.join("/foo", "bar", "package")
);
expect(pj("/foo", "bar", "package")).toBe(path.join("/foo", "bar", "package"));
});
});
});

@@ -1,9 +0,9 @@

/* @flow */
"use strict";
import path from "path";
var _path = _interopRequireDefault(require("path"));
type TPathJoin = (...p: string[]) => string;
const pathJoin: TPathJoin = (...paths) =>
path.join(...paths).replace("/", path.sep);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = pathJoin;
const pathJoin = (...paths) => _path.default.join(...paths).replace("/", _path.default.sep);
module.exports = pathJoin;
{
"homepage": "https://github.com/knitjs/knit#readme",
"license": "MIT",
"author": {
"name": "Shane Wilson"
},
"bugs": {
"url": "https://github.com/knitjs/knit/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/knitjs/knit.git"
},
"engines": {
"node": ">=10",
"npm": ">=5"
},
"private": false,
"name": "@knit/path-join",
"version": "0.0.0-5bd66a9"
"description": "os safe path join of scoped packages",
"version": "0.0.0-monorepo"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc