This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

lyra-schema-resolver
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

🪄 Lyra schema resolver

Create your Lyra schema following the official specification.

Tests

Installation

You can install the package using npm, yarn or pnpm:

npm i lyra-schema-resolver
yarn add lyra-schema-resolver
pnpm add lyra-schema-resolver

Usage

import { create, insert, search } from '@lyrasearch/lyra';
import resolveSchema from 'lyra-schema-resolver';
import * as fs from 'fs';

// You can parse data from any source, but we'll use a local file for this example
const data = JSON.parse(fs.readFileSync('./package.json').toString());
const schema = resolveSchema(data);
const db = create({ schema })

insert(db, data);

const results = search(db, {
  term: 'lyra'
});

console.log(results)

License

MIT

Package Sidebar

Install

npm i lyra-schema-resolver

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

16.9 kB

Total Files

23

Last publish

Collaborators

  • mateonunez