open-index/open-npm huggingface dataset:
npm package: @repetere/node-holidayapi
Description: Node.js library for Holiday API
Author: Josh Sherman
Latest version: 2.0.0

# node-holidayapi
[![Coverage Status](https://coveralls.io/repos/github/repetere/node-holidayapi/badge.svg?branch=master)](https://coveralls.io/github/repetere/node-holidayapi?branch=master) [![Build Status](https://travis-ci.org/repetere/node-holidayapi.svg?branch=master)](https://travis-ci.org/repetere/node-holidayapi)

Node.js library for [Holiday API](https://holidayapi.com)

## Installation

```shell
npm install --save @repetere/node-holidayapi
```

## Usage

```javascript
const HolidayAPI = require('node-holidayapi');
const hapi = new HolidayAPI('_YOUR_API_KEY_').v1;

const parameters = {
  // Required
  country: 'US',
  year:    2016,
  // Optional
  // month:    7,
  // day:      4,
  // previous: true,
  // upcoming: true,
  // public:   true,
  // pretty:   true,
};

hapi.holidays(parameters)
  .then(data=>{
    // Insert awesome code here...
  })
  .catch(error=>{
    //handle errors
  });
```

### Development

*Make sure you have grunt installed*

```sh
$ npm i -g grunt-cli jsdoc-to-markdown
```

For generating documentation
```sh
$ grunt doc
$ jsdoc2md index.js  > docs/api.md
```

### Testing

```sh
$ npm i
$ grunt test
```

### Contributing

Fork, write tests and create a pull request!


### Notes

Check out [https://github.com/repetere/node-holidayapi/blob/master/docs/api.md](https://github.com/repetere/node-holidayapi/blob/master/docs/api.md) for the full node holiday api Documentation
npm package: @repetere/react-highlight
Description: React component for syntax highlighting
Author: Kiran Abburi
Latest version: 0.12.1

# react-highlight

React component for syntax highlighting using highlight.js

![Build Status](https://travis-ci.org/akiran/react-highlight.svg?branch=master)

### Latest version

`0.11.1`

## [Documentation](https://react-highlight.neostack.com/)

### CodeSandbox Example

[![Edit new](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/mj6wlmor9p)

### Installation

```bash
  npm install react-highlight --save
```

### Usage

#### Importing component

```js
import Highlight from 'react-highlight'
```

#### Adding styles

Choose the [theme](https://highlightjs.org/static/demo/) for syntax highlighting and add corresponding styles of highlight.js

```css
  <link rel="stylesheet" href="/path/to/styles/theme-name.css">
```

The styles will most likely be in `node_modules/highlight.js/styles` folder.

Props:

* className: custom class name
* innerHTML: enable to render markup with dangerouslySetInnerHTML
* element: render code snippet inside specified element

#### Syntax highlighting of single code snippet

Code snippet that requires syntax highlighting should be passed as children to Highlight component in string format. Language name of code snippet should be specified as className.

```html
<Highlight className='language-name-of-snippet'>
  {"code snippet to be highlighted"}
</Highlight>
```

#### Syntax highlighting of mutiple code snippets

Set `innerHTML=true` to highlight multiple code snippets at a time.
This is especially usefull if html with multiple code snippets is generated from preprocesser tools like markdown.

**Warning:** If innerHTML is set to true, make sure the html generated with code snippets is from trusted source.

```html
<Highlight innerHTML={true}>
  {"html with multiple code snippets"}
</Highlight>
```