Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uetchy/ple

Streamlined PList Editor
https://github.com/uetchy/ple

plist property-list

Last synced: 4 days ago
JSON representation

Streamlined PList Editor

Awesome Lists containing this project

README

        

# ple

A streamlined plist editor.

[![npm-version]][npm-url]
[![npm-downloads]][npm-url]

[npm-version]: https://badgen.net/npm/v/ple
[npm-downloads]: https://badgen.net/npm/dt/ple
[npm-url]: https://npmjs.org/package/ple

## Install

```bash
npm i -g ple
```

## Use

### CLI

```bash
ple Info.plist # parse and print content
ple Info.plist --json # parse and print content in JSON
ple Info.plist version # parse and print a value of `version`
ple Info.plist version v1.0.0 # rewrite a value of `version`
```

### Node.js

#### `readPlist`

```js
import { readPlist } from "ple";

const plistValue = readPlist(plistPath, key);
```

#### `rewritePlist`

```js
import { rewritePlist } from "ple";

rewritePlist(plistPath, key, value);
```

## Contribute

See [Contribution Guide](./CONTRIBUTING.md)

### Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



uetchy

πŸ’» πŸ“–

RafaΕ‚ Pocztarski

πŸ“¦

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!

**Special thanks:**

- [RafaΕ‚ Pocztarski](https://github.com/rsp) for donating package name `ple`.