# pixi-texture-manifest-gen

> generates json manifest files for use with pixi.js

Latest version **1.0.3** (published 2020-05-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install pixi-texture-manifest-gen
pnpm add pixi-texture-manifest-gen
yarn add pixi-texture-manifest-gen
bun add pixi-texture-manifest-gen
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-05-24 |
| First published | 2020-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 28.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Brandon Connors |
| Maintainers | bdconnors |

## Links

- npm: https://www.npmjs.com/package/pixi-texture-manifest-gen
- Repository: https://github.com/bdconnors/2d-sprite-manifest-gen
- Homepage: https://github.com/bdconnors/2d-sprite-manifest-gen#readme
- Issues: https://github.com/bdconnors/2d-sprite-manifest-gen/issues
- npm.io page: https://npm.io/package/pixi-texture-manifest-gen

## Dependencies (1)

- [image-size](https://npm.io/package/image-size.md) ^0.8.3

## Recent versions

- 1.0.3 (latest) — 2020-05-24
- 1.0.2 — 2020-05-24
- 1.0.1 — 2020-05-19
- 1.0.0 — 2020-05-18

## README

# pixi-texture-manifest-gen
generates json manifest files for use with pixi.js

**Input(Single)**
```javascript
const oneAsset = {path:"../cats.png",col:1,row:1}; //one column one row
```

**Input(Multiple)**
```javascript
const manyAssets = [
  {path:"../cats.png",col:1,row:1,animations:[{name:"cat1",start:1,end:5}]}, //with animations
  {path:"../dogs.png",col:6,row:4}, //without animations,
  {path:"lizards.png",col:2,row:4}, //change output name (defaults to image name)
  {path:"../birds.png",col:4,row:4,dir:"asset/images"} //output to different directory (defaults to the images directory)
];
```
**Writing(.json)**
```javascript
const manifestGen = require('pixi-texture-manifest-gen');

manifestGen.write(oneAsset);
manifestGen.writeMany(manyAssets);
```

**Generating(Object)**
```javascript
const manifestGen = require('pixi-texture-manifest-gen');

const manifest = manifestGen.generate(asset);
const manifests = manifestGen.generateMany(assets);
```

---
_Source: https://npm.io/package/pixi-texture-manifest-gen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
