pub struct NpmCommand;Expand description
Detect npm install ..., npx create-..., and npx ... first-lines in
fenced code blocks and replace them with a <PackageManagerTabs> JSX
element carrying the per-pm equivalents as plain string attrs.
Implementations§
Source§impl NpmCommand
impl NpmCommand
Trait Implementations§
Source§impl Default for NpmCommand
impl Default for NpmCommand
Source§fn default() -> NpmCommand
fn default() -> NpmCommand
Returns the “default value” for a type. Read more
Source§impl Transformer for NpmCommand
impl Transformer for NpmCommand
Auto Trait Implementations§
impl Freeze for NpmCommand
impl RefUnwindSafe for NpmCommand
impl Send for NpmCommand
impl Sync for NpmCommand
impl Unpin for NpmCommand
impl UnsafeUnpin for NpmCommand
impl UnwindSafe for NpmCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more