Socket
Socket
Sign inDemoInstall

@canonical/discourse-rad-parser

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/discourse-rad-parser

A script that parses RAD elements generated by Discourse and makes them dynamic.


Version published
Weekly downloads
103
decreased by-15.57%
Maintainers
0
Weekly downloads
 
Created
Source

Discourse RAD parser

This script parses the RAD elements generated by Discourse and makes them dynamic.

Usage

  1. Via direct link

To consume the library directly, add a link to the JS file containing an IIFE and call the lib:

<script src="[ INSERT YOUR LOCAL PATH ]/js/discourse-rad-parser.js"></script>
<script>
  drpNs.DiscourseRADParser();
</script>
  1. Via ES6 import
import { DiscourseRADParser } from 'discourse-rad-parser';

Contributing

If you would like to help improve this project, here is a list of commands to help you get started.

Building the discourse-rad-parser

Install the requisite dependencies;

npm install

To build the JS and CSS into the build folder, run:

npm run build

You can view the build files in action by opening the index.html in the root of this project.

Hacking

When developing this project you can run the following command to listen to changes in the src/js/*js and src/sass/*scss folders and build them into the /build folder.

npm run watch

Before submitting your pull request, run the linters, which checks both the JS and Sass for errors.

npm run test

Code licensed LGPLv3 by Canonical Ltd.

With ♥ from Canonical

FAQs

Package last updated on 25 Jul 2024

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