open-index/open-npm huggingface dataset:
npm package: @luhn-se/sdk
Description: Official JavaScript SDK for the luhn.se API.
Author: luhn.se
Latest version: 1.0.0

# Luhn.se JavaScript/TypeScript SDK

Official SDK for the [luhn.se](https://luhn.se) API.

## Installation

```bash
npm install @luhn-se/sdk
```

## Usage

First, get your API key from your [profile page](https://luhn.se/profile).

```javascript
import { LuhnSDK } from '@luhn-se/sdk';

const luhn = new LuhnSDK('YOUR_API_KEY');

async function generateData() {
  try {
    // Get a single person
    const person = await luhn.getPerson();
    console.log(person);

    // Get 5 companies
    const companies = await luhn.getCompany({ amount: 5 });
    console.log(companies);

    // Validate a list of numbers
    const validationResults = await luhn.validateBulk(['811218-9876', '556614-3185']);
    console.log(validationResults);

  } catch (error) {
    console.error('Failed to fetch data:', error);
  }
}

generateData();
```

## API

All generator methods accept an `options` object which can contain any of the global query parameters like `amount` or `seed`.

- `getPerson(options)`
- `getCompany(options)`
- `getFinance(options)`
- `getBankgiro(options)`
- `getPlusgiro(options)`
- `getVehicle(options)`
- `getCreditcard(options)`
- `getImei(options)`
- `getIdentity(options)`
- `getBankIdMock(options)`
- `validate(number)`
- `validateBulk(numbersArray)`
- `mask(dataArray, options)`
npm package: @luhn/gulp-rev-css-url
Description: A lightweight plugin for gulp-rev to replace CSS url() calls with hashed URLs.
Author: Theron Luhn
Latest version: 0.2.0

gulp-rev-css-url
================

A lightweight plugin for [gulp-rev](https://www.npmjs.org/package/gulp-rev) to replace CSS `url()` calls with hashed URLs.

This is a fork of @galkinrost's [gulp-rev-css-url](https://www.npmjs.com/package/gulp-rev-css-url), which appears to be unmaintained.
Changes include:

- Tested against up-to-date dependencies and Node 18+.
- Removed support for JS files.
- Support for relative URLs.  e.g. `../images/foo.png`
- Support for query strings and fragments.  e.g. `myfont-webfont.eot?#iefix`

As far as I'm aware, this is the only `gulp-rev` (or equivalent) plugin that properly handles relative URLs.
Most will work, if at all, *only* if the relative URL backs out to the base directory.
(Please let me know if this isn't the case!  I'd love other options.)

Sample
------

Take the following simple CSS file (`css/main.css`) which references `images/dummy.jpg`.

```css
body {
	background: url("../images/dummy.jpg");
}
```

After running gulp-rev with gulp-rev-css-url, the resulting CSS file might look like this:

```css
body {
	background: url("../images/dummy-0849cad9cc.jpg
}
```

Install
-------

```sh
npm install --save-dev @luhn/gulp-rev-css-url
```

Usage
-----

Add `gulp-rev-css-url` to your Gulp pipeline, directly after `gulp-rev`.

```javascript
const gulp = require('gulp');
const rev = require('gulp-rev');
const override = require('gulp-rev-css-url');

function rev() {
	return gulp.src('./app/**/*')
		.pipe(rev())
		.pipe(override())
		.pipe(gulp.dest('./build/'))
		.pipe(rev.manifest())
		.pipe(gulp.dest('./build/'));
};

exports.default = rev;
```