Socket
Book a DemoInstallSign in
Socket

@fuman/plist

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuman/plist

apple property list reader and writer

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
43
-53.26%
Maintainers
1
Weekly downloads
 
Created
Source

@fuman/plist

modern typescript utilities for working with property lists (the .plist files used in apple operating systems), both reading and writing, both binary and xml-based. also supports NSKeyedArchiver/NSKeyedUnarchiver.

binary plist

import { readBinaryPlist, writeBinaryPlist } from '@fuman/plist'

const data = writeBinaryPlist({ meow: 'purr' })
console.log(readBinaryPlist(data))

xml plist

import { readXmlPlist, writeXmlPlist } from '@fuman/plist'

const data = writeXmlPlist({ meow: 'purr' })
console.log(readXmlPlist(data))

note: readXmlPlist uses DOMParser, which might not be available in your environment (notably, under node.js as of writing). consider using @xmldom/xmldom:

import { DOMParser } from '@xmldom/xmldom'
console.log(readXmlPlist(data, { DOMParser }))

NSKeyedArchiver

import { nsKeyedArchive, nsKeyedUnarchive, readBinaryPlist, writeBinaryPlist } from '@fuman/plist'

const file = nsKeyedUnarchive(readBinaryPlist(await readFile('meow.plist')))
console.log(file)
file.foo = 123
await writeFile('meow2.plist', writeBinaryPlist(nsKeyedArchive(file)))

FAQs

Package last updated on 13 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.