🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@croct/json-pointer

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@croct/json-pointer

A RFC6901 compliant type-safe JSON pointer library to handle arbitrary structured data.

0.3.0
latest
Source
npm
Version published
Weekly downloads
697
64.39%
Maintainers
0
Weekly downloads
 
Created
Source

Croct
JSON Pointer
A RFC 6901 compliant JSON pointer library to handle arbitrary structured data.

Version Build

📦Releases · 🐞Report Bug · ✨Request Feature

Introduction

This library provides a fast, RFC 6901 compliant JSON pointer implementation to manipulate arbitrary JSON values with type-safety. Relative JSON pointers are also supported.

These are the main highlight that distinguishes it from similar libraries:

  • Fast and lightweight, zero dependencies
  • Fully compliant with the specification, including validation, serialization, and deserialization
  • Provide methods for reading and writing structures
  • Restricts operations such that no array becomes sparse
  • Ensures that a valid JsonStructure modified by a JsonPointer results in a still valid JsonStructure

Installation

We recommend using NPM to install the package:

npm install @croct-tech/json-pointer

Contributing

Contributions to the package are always welcome!

  • Report any bugs or issues on the issue tracker.
  • For major changes, please open an issue first to discuss what you would like to change.
  • Please make sure to update tests as appropriate.

Testing

Before running the test suites, the development dependencies must be installed:

npm install

Then, to run all tests:

npm run test

Run the following command to check the code against the style guide:

npm run lint

Building

Before building the project, the dependencies must be installed:

npm install

The following command builds the library:

npm run build

License

Copyright © 2015-2021 Croct Limited, All Rights Reserved.

All information contained herein is, and remains the property of Croct Limited. The intellectual, design and technical concepts contained herein are proprietary to Croct Limited s and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Croct Limited.

Keywords

croct

FAQs

Package last updated on 09 Jan 2025

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