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

@highpoint/babel-plugin-meta-html

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highpoint/babel-plugin-meta-html

Populates meta-html references

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
increased by66.67%
Maintainers
3
Weekly downloads
 
Created
Source

Meta-HTML Babel Plugin

Replaces PeopleSoft meta-HTML found in JavaScript with values from PeopleSoft.

This is useful when developing JavaScript locally.

For example:

const message = '%Message(175, 5)';

will become

const message = 'Custom Properties';

Installation

npm install @highpoint/babel-plugin-meta-html

Usage

Copy .env-sample to your root directory and name it .env. Then populate it with values for your PeopleSoft environment. See "Environment Variables" below.

Add the plugin to your .babelrc file.

Simple example:

{
  "env": {
    "development": {
      "plugins": [
        "@highpoint/meta-html"
      ]
    }
  }
}

Advanced example:

{
  "env": {
    "development": {
      "plugins": [
          [
            "@highpoint/meta-html", {
              "cacheDirectory": "tmp",
              "cacheTTL": 600
            }
          ]
      ]
    }
  }
}

Options

  • cacheDirectory: Defaults to node_modules/.cache/babel-plugin-meta-html. Set to false to disable caching.
  • cacheTTL: Cache's time-to-live value, in seconds. Values older than this will be refreshed. Defaults to 86,400 seconds (one day).

Environment Variables

VariableExample
PS_HOSTNAMEps.example.com
PS_ENVIRONMENTcsdev
PS_NODESA
PS_USERNAMEusername
PS_PASSWORDpassword1

Keywords

FAQs

Package last updated on 03 Jun 2019

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