Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lifeomic/termdiff

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lifeomic/termdiff

Compare ontologies and migrate between them.

  • 1.0.1-pr-26-1698944197-1642183250.0
  • pr-26
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
2
Weekly downloads
 
Created
Source

GitHub Travis (.org) branch GitHub package.json version npm bundle size

TermDiff

Compare ontologies in order to migrate between them.

Quick Start

Install the @lifeomic/termdiff package.

npm install @lifeomic/termdiff

or

yarn add @lifeomic/termdiff

Import the diff function:

import { diff } from 'termdiff';

Apply it to create a changeset:

const changeset = diff([{ 'foo': 'bar'}], [{'qux': 'baz'}])

changeset will contain be an array of operations:

console.log(JSON.stringify(changeset, null, 2));
[
  {
    "op": "add",
    "value": {
      "qux": "baz"
    }
  },
  {
    "op": "remove",
    "value": {
      "foo": "bar"
    }
  }
]

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to release the project.

Prerequisites

What things you need to install the software and how to install them

  • Node.js
  • yarn

Installing

Install all dependencies using yarn:

yarn install

Testing

We use jest for testing and enforce 100% code coverage:

yarn test

Linting

Coding style is enforced through eslint:

yarn lint

You can invoke the following to style your code:

yarn lint --fix

Deployment

Deployments are automated using GitHub Actions. Update the version in package.json to release a new version

See the section on versioning to learn more.

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Taylor Steinberg - Initial work - tdstein

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • The output format was inspired by the JSON Patch proposal

FAQs

Package last updated on 14 Jan 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc