npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

set-data

v1.2.0

Published

set-data란 데이터 저장방식입니다.

Downloads

25

Readme

English | 한국어

set-data

Basic Syntax

set-data is a data storage method. It uses the extension .sd.

Key-Value

set-data consists of key-value pairs as follows.

KEY=VALUE

{ KEY: 'VALUE' }

Comments

In set-data, use the # symbol for comments.

# This is a comment.
KEY=VALUE

{ KEY: 'VALUE' }

Spacing

In set-data, when using spacing in values, use $S as follows.

KEY=spacing$Sexample

{ KEY: 'spacing example' }

= Character

Starting from version 1.2.0, you no longer need to use $E when using the = character in values.

Multiple Values

In set-data, when storing multiple values, do not use commas. (However, make sure to use line breaks.)

KEY1=VALUE1
KEY2=VALUE2

{ KEY1: 'VALUE1', KEY2: 'VALUE2' }

Arrays

In set-data, when using arrays, append & to the key and separate elements with commas in the value.

&KEY=VALUE1,VALUE2

{ KEY: ['VALUE1', 'VALUE2'] }

Commas in Arrays

When you want to use commas in elements of an array, use $C as follows.

&KEY=comma$Cexample,VALUE2

{ KEY: ['comma,example', 'VALUE2'] }

Boolean

In set-data, when using boolean values, append ! to the key.

!KEY=true

{ KEY: true }

Library Functions

Download/Import

To download the library, type npm i set-data in the console. To import the library, use require as follows.

const setData = require('set-data')

parse(text)

parse returns the set-data string as an object.

setData.parse(`
    KEY=VALUE
`)

{ KEY: 'VALUE' }

parseFile(fileName, fileEncoding)

parseFile returns the set-data file as an object.

setData.parseFile('./setting.sd', 'utf-8')
setData.parseFile('./setting.sd') // Encoding can be omitted.

stringfy(object)

stringfy returns an object as a set-data string as follows.

setData.stringfy({
    key: 'value'
})

key=value

stringfyFile(fileName, object)

stringfyFile writes a set-data file with an object as follows.

setData.stringfyFile('./setting.sd', {
    key: 'value'
})

This will write key=value content to the ./setting.sd file.

Be careful when passing the path of an existing file as the fileName parameter, as it will overwrite the file.