0.1.3 • Published 1 year ago

@macellan/json-extractify v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@macellan/json-extractify

Description

Parses a string and extracts JSON objects from it.

Parameters

  • data (string): The string to parse.

Returns

  • Array of object: An array of parsed JSON objects.

Usage

Basic Example

import JsonExtractify from '@macellan/json-extractify'

const json = '{ "foo": "bar" } { "abc": "xyz" }'

const value = JsonExtractify.parse(json)

console.log(value)
// Output: [{ foo: 'bar' }, { abc: 'xyz' }]
0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago