Socket
Socket
Sign inDemoInstall

metalsmith-alias

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-alias

Metalsmith plugin for generating page URL aliases


Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

metalsmith-alias build status

Greenkeeper badge

Create aliases for a pages with automatic redirection.

alias:
- alternate-name
- other/url
- somepage/that/used/to/be/here.html

Usage

const alias = require('metalsmith-alias');

Metalsmith()
  // Other plugins and configuration
  .use(alias({netlify: true}))
  // More plugins and configuration

Options:

  • netlify: Whether a Netlify _redirects file should be created (default false).

Changelog

  • 0.2.0: Use forced redirects to avoid shadowing.
  • 0.1.2: Don't overwrite existing _redirects.
  • 0.1.1: Generate extra redirects without index.html.
  • 0.1.0: Add ability to create _redirects file for Netlify.
  • 0.0.3: Use path member if set on the file object.

Alternatives

Keywords

FAQs

Package last updated on 24 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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