🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@gram-data/gram-preset-basic

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gram-data/gram-preset-basic

Gram preset with sensible default processing

latest
Source
npmnpm
Version
0.3.11
Version published
Maintainers
1
Created
Source

gram-preset-basic

TODO: description

How to gram-preset-basic

Prepare a unified text processing engine:

const unified = require('unified');
const gramParserPlugin = require('@gram-data/gram-parse').gramParserPlugin;
const gramPresetBasic = require('@gram-data/gram-preset-basic');

const gramProcessor = unified()
  .use(gramParserPlugin)
  .use(gramPresetBasic);

Just parse:

  const parsed = gramProcessor.parse(src);

Parse and apply plugins by calling runSync() on the processor:

  const parsed = gramProcessor.runSync(gramProcessor.parse(src));

Keywords

gram

FAQs

Package last updated on 22 Jan 2021

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