Socket
Book a DemoInstallSign in
Socket

@pfx/json

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pfx/json

JSON plugin for pf, the fast and extensible command-line data (e.g. JSON) processor and transformer

0.10.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@pfx/json teaser

@pfx/json is a JSON plugin for pf, the fast and extensible command-line data (e.g. JSON) processor and transformer.

See the pf github repository for more details!

node version npm version license PRs Welcome linux unit tests status macos unit tests status windows unit tests status

Installation

:ok_hand: @pfx/json comes preinstalled in pf. No installation necessary. If you still want to install it, proceed as described below.

@pfx/json is installed in ~/.pfrc/ as follows:

npm install @pfx/json

The plugin is included in ~/.pfrc/index.js as follows:

const json = require('@pfx/json')

module.exports = {
  plugins:  [json],
  context:  {},
  defaults: {}
}

For a much more detailed description, see the .pfrc module documentation.

Extensions

This plugin comes with the following pf extensions:

Description
jsonObj lexerSearches the data for JSON objects and returns each object as a token. All data between objects is dropped. This is useful in a streaming context, or when parsing files containing one big JSON list of JSON objects.
json parserParses data into JSON. Uses JSON.parse internally.
json marshallerSerializes transformed JSON into JSON using JSON.stringify.

Reporting Issues

Please report issues in the tracker!

License

@pfx/json is MIT licensed.

Keywords

pf

FAQs

Package last updated on 06 Jan 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.