@ekifvk/jpquery
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

JavaScript Path Query

Query JSON object and array.

Example

{times:[1,2,3,{success:false},{success:true}]}

Use query:

/times/success -> [undefined, undefined, undefined, false, true]

/times[-1 -> -2]/success -> [ true, false ]

/times[1 -> last] -> [2, 3, {success:false}, {success:true}] // const last = (array | string).length - 1

/times[-1 -> -last - 1] -> [{success:true}, {success:false}, 3, 2, 1]

Readme

Keywords

Package Sidebar

Install

npm i @ekifvk/jpquery

Weekly Downloads

1

Version

1.3.1

License

LGPL-3.0

Unpacked Size

37.3 kB

Total Files

33

Last publish

Collaborators

  • lundarl_gholoi