Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
parserblade
Advanced tools
Readme
A all-in-one parser for Javascript, heavily inspired by: https://github.com/nathanmac/Parser. It allows you to work with JSON, XML, CSV and YAML more without worrying about which module install. It's designed to work just as JSON.parse
and JSON.stringify
does, with some improvements.
See docs for more info and examples.
$ npm install --save parserblade
Every filetype has two main methods: stringify()
and parse()
, both receives two arguments, data
containing any type of data and an options object.
const { csv } = require('parserblade')
// Parsing
const input = 'title,platform\nStardew Valley,Steam'
const result = csv.parse(input)
console.log(result) // [ { title: 'Stardew Valley', platform: 'Steam' } ]
// Stringifying
console.log(
csv.stringify(result)
) // 'title,platform\nStardew Valley,Steam'
const { yaml } = require('parserblade')
// Parsing
const input = 'title: Stardew Valley\nplatform: Steam'
const result = yaml.parse(input)
console.log(result) // { title: 'Stardew Valley', platform: 'Steam' }
// Stringifying
console.log(
yaml.stringify(result)
) // 'title: Stardew Valley\nplatform: Steam'
const { xml } = require('parserblade')
// Parsing
const input = '<?xml version="1.0" encoding="utf-8"?><package>lodash</package>'
const result = xml.parse(input)
console.log(result) // { package: 'lodash' }
// Stringifying
console.log(
xml.stringify(result)
) // '<?xml version="1.0" encoding="utf-8"?><package>lodash</package>'
MIT ©
FAQs
The easiest parser for JSON, XML, CSV and YAML. Use it as simple as JSON.stringify() or JSON.parse(). All in one place.
The npm package parserblade receives a total of 1 weekly downloads. As such, parserblade popularity was classified as not popular.
We found that parserblade demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.