open-index/open-npm huggingface dataset:
npm package: @houshuang/babel-jest
Description: Jest plugin to use babel for transformation.
Latest version: 23.2.0

# babel-jest

[Babel](https://github.com/babel/babel) [jest](https://github.com/facebook/jest) plugin

## Usage

If you are already using `jest-cli`, just add `babel-jest` and it will automatically compile JavaScript code using babel.

```bash
yarn add --dev babel-jest babel-core
```

> Note: If you are using babel version 7 you have to install `babel-jest` with
>
> ```bash
> yarn add --dev babel-jest babel-core@^7.0.0-0 @babel/core
> ```

If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.transform](http://facebook.github.io/jest/docs/configuration.html#transform-object-string-string) option to your preprocessor.

## Setup

_Note: this step is only required if you are using `babel-jest` with additional code preprocessors._

To explicitly define `babel-jest` as a transformer for your JavaScript code, map _.js_ files to the `babel-jest` module.

```json
"transform": {
  "^.+\\.jsx?$": "babel-jest"
},
```
npm package: @houshuang/davefeedread
Description: Read a feed and call back with a JavaScript structure.
Author: Dave Winer
Latest version: 0.5.0

### What is this?

It's a <a href="https://www.npmjs.com/package/davefeedread">Node package</a> that contains everything you need to read a feed. 

It builds on the <a href="https://github.com/danmactough/node-feedparser">feedParser package</a>. It's simpler to call, no need to master <a href="https://nodejs.org/api/stream.html#stream_stream">streams</a> or <a href="https://www.npmjs.com/package/iconv">iconv</a>. 

You can also parse a string, so you can deal with files that contain feed data, not just feeds accessible over the web. Or the feed text could come from a database. 

Because we use feedParser, we handle all the formats and variability that it handles. 

It's an entry-level feed parser that will be useful to people who haven't mastered all of JavaScript. 

### Why?

Sometimes you need to quickly read a feed and do something with it, and don't have time for a major project. This package is for those times. 

It also provides good sample code for more advanced feed reading projects. 

And as you may have heard <a href="https://www.wired.com/story/rss-readers-feedly-inoreader-old-reader/">RSS is coming back</a> in a big way, and it's spring, and time for a little cleaning. ;-)
npm package: @houshuang/note-link-janitor
Description: This script reads in a folder of Markdown files, notes all the [[wiki-style links]] between them, then adds a special "backlinks" section which lists passages which reference a given file.
Author: Andy Matuschak
Latest version: 0.0.4

# note-link-janitor

This script reads in a folder of Markdown files, notes all the [[wiki-style links]] between them, then adds a special "backlinks" section which lists passages which reference a given file.

For example, this text might get added to `Sample note.md`:

```
## Backlinks
* [[Something that links here]]
    * The block of text in the referencing note which contains the link to [[Sample note]].
    * Another block in that same note which links to [[Sample note]].
* [[A different note that links here]]
    * This is a paragraph from another note which links to [[Sample note]].
```

The script is idempotent; on subsequent runs, _it will update that backlinks section in-place_.

The backlinks section will be initially inserted at the end of the file. If there happens to be a HTML-style `<!-- -->` block at the end of your note, the backlinks will be inserted before that block.

## Assumptions/warnings

1. Links are formatted `[[like this]]`.
2. Note titles are inferred from filenames. That is: if a file named `Note A.md` contains the text `[[Note B]]`, then a backlink to `Note A` will be added to the file named `Note B.md`. No special handling is yet present for special characters in filenames.
3. All `.md` files are siblings; the script does not currently recursively traverse subtrees (though that would be a simple modification if you need it; see `lib/readAllNotes.ts`)
4. The backlinks "section" is defined as the AST span between `## Backlinks` and the next heading tag (or `<!-- -->` tag). Any text you might add to this section will be clobbered. Don't append text after the backlinks list without a heading in between! (I like to leave my backlinks list at the end of the file)

### This is FYI-style open source

This is FYI-style open source. I'm sharing it for interested parties, but without any stewardship commitment. Assume that my default response to issues and pull requests will by to ignore or close them without comment. If you do something interesting with this, though, [please let me know](mailto:andy@andymatuschak.org).

## Usage

To install a published release, run:

```
yarn global add @andymatuschak/note-link-janitor
```

Then to run it (note that it will modify your `.md` files _in-place_; you may want to make a backup!):

```
note-link-janitor path/to/folder/containing/md/files
```

That will run it once; you'll need to create a cron job or a launch daemon to run it regularly.

It's built to run against Node >=12, so you may need to upgrade or swap your runtime version.

## Building a local copy

```
yarn install
yarn run build
```

## Future work

In the future, I intend to expand this project to monitor for broken links, orphans, and other interesting hypertext-y predicates.
npm package: @houshuang/parse-png
Description: Parse a PNG
Author: Kevin Martensson
Latest version: 1.1.4

# parse-png [![Build Status](https://travis-ci.org/kevva/parse-png.svg?branch=master)](https://travis-ci.org/kevva/parse-png)

> Parse a PNG


## Install

```
$ npm install --save parse-png
```


## Usage

```js
const fs = require('fs');
const parsePng = require('parse-png');

parsePng(fs.readFileSync('unicorn.png')).then(png => {
	console.log(png);
	/*
	{
		width: 200,
		height: 133,
		depth: 8,
		interlace: false,
		palette: false,
		color: true,
		alpha: false,
		bpp: 3,
		colorType: 2,
		data: <Buffer 29 48 4d ...>,
	}
	*/

	png.adjustGamma();
	png.pack().pipe(fs.createWriteStream('unicorn-adjusted.png'));
});
```


## API

### parsePng(buffer, [options])

Returns a promise for a PNG instance. See the [pngjs documentation](https://github.com/lukeapage/pngjs#async-api) for more information.

#### buffer

Type: `buffer`

A PNG image buffer.

#### options

Type: `object`

See the [pngjs options](https://github.com/lukeapage/pngjs#options).


## License

MIT © [Kevin Martensson](http://github.com/kevva)
npm package: @houshuang/pdf-annotate.js
Description: Annotation layer for pdf.js
Author: Matt Zabriskie
Latest version: 0.0.8

# pdf-annotate.js

[![build status](https://img.shields.io/travis/instructure/pdf-annotate.js.svg?style=flat-square)](https://travis-ci.org/instructure/pdf-annotate.js)
[![code coverage](https://img.shields.io/coveralls/instructure/pdf-annotate.js.svg?style=flat-square)](https://coveralls.io/r/instructure/pdf-annotate.js)

Annotation layer for [pdf.js](https://github.com/mozilla/pdf.js)

## Objectives

- Provide a low level annotation layer for [pdf.js](https://github.com/mozilla/pdf.js).
- Optional high level UI for managing annotations.
- Agnostic of backend, just supply your own `StoreAdapter` to fetch/store data.
- Prescribe annotation format.

## Example

```js
import __pdfjs from 'pdfjs-dist/build/pdf';
import PDFJSAnnotate from 'pdfjs-annotate';
import MyStoreAdapter from './myStoreAdapter';

const { UI } = PDFJSAnnotate;
const VIEWER = document.getElementById('viewer');
const RENDER_OPTIONS = {
  documentId: 'MyPDF.pdf',
  pdfDocument: null,
  scale: 1,
  rotate: 0
};

PDFJS.workerSrc = 'pdf.worker.js';
PDFJSAnnotate.setStoreAdapter(MyStoreAdapter);

PDFJS.getDocument(RENDER_OPTIONS.documentId).then((pdf) => {
  RENDER_OPTIONS.pdfDocument = pdf;
  VIEWER.appendChild(UI.createPage(1));
  UI.renderPage(1, RENDER_OPTIONS);
});
```

See more [examples](https://github.com/instructure/pdf-annotate.js/blob/master/web/index.js).

## Documentation

[View the docs](https://github.com/instructure/pdf-annotate.js/tree/master/docs).

## Developing

```bash
# clone the repo
$ git clone https://github.com/instructure/pdf-annotate.js.git
$ cd pdf-annotate.js

# intall dependencies
$ npm install

# start example server
$ npm start
$ open http://127.0.0.1:8080

# run tests
$ npm test
```
## License

MIT