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

@theguild/remark-npm2yarn

Package Overview
Dependencies
Maintainers
3
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theguild/remark-npm2yarn - npm Package Compare versions

Comparing version 0.0.2-alpha-20230707135638-3baa9f2 to 0.1.0-alpha-20230709124250-c89d6c9

dist/constants.d.ts

1

dist/plugin.d.ts

@@ -8,2 +8,3 @@ import { Root } from 'mdast';

tabNamesProp: string;
storageKey: string;
}

@@ -10,0 +11,0 @@ ], Root>;

import convert from "npm-to-yarn";
import { visit } from "unist-util-visit";
import { PACKAGE_MANAGERS } from "./constants.js";
const META_PLACEHOLDER = "npm2yarn";
const PACKAGE_MANAGERS = ["pnpm", "yarn", "npm"];
const TABS_NAME = "$Tabs";

@@ -26,2 +26,4 @@ const TAB_NAME = "$Tab";

throw new Error("remarkNpm2Yarn: `tabNamesProp` option is required");
if (!opts?.storageKey)
throw new Error("remarkNpm2Yarn: `storageKey` option is required");
const IMPORT_AST = {

@@ -75,2 +77,7 @@ type: "mdxjsEsm",

}
},
{
type: "mdxJsxAttribute",
name: "storageKey",
value: opts.storageKey
}

@@ -77,0 +84,0 @@ ]

7

package.json
{
"name": "@theguild/remark-npm2yarn",
"version": "0.0.2-alpha-20230707135638-3baa9f2",
"version": "0.1.0-alpha-20230709124250-c89d6c9",
"type": "module",

@@ -25,7 +25,10 @@ "description": "Remark plugin for transforming npm bash commands to yarn/pnpm with tabs",

"npm-to-yarn": "^2.0.0",
"unist-util-visit": "^5.0.0"
"unist-util-visit": "^4.1.2"
},
"devDependencies": {
"@types/mdast": "3.0.11",
"@types/react": "^18.2.12",
"nextra": "2.7.1",
"nextra-theme-docs": "2.7.1",
"react": "^18.2.0",
"unified": "10.1.2"

@@ -32,0 +35,0 @@ },

@@ -22,4 +22,5 @@ # `@theguild/remark-mermaid`

remark.use(remarkNpm2Yarn, {
packageName: '<string>', // nextra/components
tabNamesProp: '<string>' // items
packageName: '<string>', // e.g. 'nextra/components'
tabNamesProp: '<string>', // e.g. 'items'
storageKey: '<string>' // local storage key, e.g. 'selectedPackageManager'
})

@@ -26,0 +27,0 @@ ```

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