New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

iceparser

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

iceparser

iceparser =========

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

iceparser

Icecast stream metadata parser for Node.js

Install

npm install iceparser

Usage

var ice = require('iceparser');
var meta = "StreamTitle='NIRVANA - Smells Like Teen Spirit';";

ice.parse(meta);  // {title: 'NIRVANA - Smells Like Teen Spirit'}

var rule = [/([\w\s]+)\s\-\s([\w\s]+)/, 'artist', 'title'];
var step = {name: 'title', rule: rule, options: {lower: true}};
var parser = new ice(step);  // Initialize with step object or steps array

parser.parse(meta);  // {artist: 'nirvana', title: 'smells like teen spirit'}

Step Options

{
    html: true|false,   // decode HTML
    lower: true|false   // convert to lower case
}

FAQs

Package last updated on 17 Oct 2014

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