0.10.4 • Published 6 years ago

@pfx/json v0.10.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@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.

0.10.4

6 years ago

0.10.2

6 years ago

0.10.3

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago