x-ray-build

1.2.0 • Public • Published

x-ray-build

Build Status Coverage Status

A helper that build a x-ray based on a schema.

Getting started

npm install x-ray-build
const x = require('x-ray');
const build = require('x-ray-build');

const drive = x();
const crawl = build(drive, {
  $source: 'https://github.com/diogoazevedos',
  $context: '[itemscope]',
  $selector: {
    name: '.vcard-fullname',
    repos: {
      $context: '.source',
      $selector: [{
        name: '.repo',
      }],
    },
  },
});

crawl((e, content) => console.log(content));

Package Sidebar

Install

npm i x-ray-build

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

5.92 kB

Total Files

8

Last publish

Collaborators

  • diogoazevedos