Skip to content

CodeRadu/pls-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pls-parser

Parse and create PLS playlist files

Usage

In JavaScript

const { parse, stringify } = require("pls-parser")
const { readFileSync, writeFileSync } = require("fs")

const raw = readFileSync("./playlist.pls", { encoding: "utf-8" })

const parsed = parse(raw)

const json = readFileSync("./playlist.json", { encoding: "utf-8" })

const pls = stringify(json)

Or in TypeScript

import { parse, stringify } from "pls-parser"
import { readFileSync } from "fs"

const raw = readFileSync("./playlist.pls", { encoding: "utf-8" })

const parsed = parse(raw)

const json = readFileSync("./playlist.json", { encoding: "utf-8" })

const pls = stringify(json)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published