🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
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

0.3.5
Source
npm
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 10 Dec 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