New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ini-parser

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

ini-parser - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "ini-parser",
"version": "0.0.1",
"version": "0.0.2",
"description": "A better .ini files parser",

@@ -5,0 +5,0 @@ "keywords": ["ini", "linux", "configration", "parser", "files"],

@@ -13,54 +13,12 @@ # Node ini-parser

var content = fs.readFileSync('path/to/file', 'utf-8')
parse.parse(String)
var data = parser.parse(content)
parser.parseFile('path/to/file', function(error, data){
// do something
})
parser.parseFile('path/to/file', callback(error, data))
var data = parse.parseFileSync('path/to/file')
parse.parseFileSync('path/to/file')
```
## Example
file rhythmbox.desktop
```ini
[Desktop Entry]
Name=Rhythmbox
GenericName=Music Player
X-GNOME-FullName=Rhythmbox Music Player
Comment=Play and organize your music collection
Exec=rhythmbox %U
Terminal=false
Type=Application
Icon=rhythmbox
X-GNOME-DocPath=rhythmbox/rhythmbox.xml
Categories=GNOME;GTK;AudioVideo;
MimeType=application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac;
Keywords=Mp3;Audio;CD;MTP;Podcast;DAAP;Playlist;Ipod;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=rhythmbox
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata;
X-GNOME-Bugzilla-Version=2.96
Actions=Play;Pause;Next;Previous;
X-Ubuntu-Gettext-Domain=rhythmbox
[Desktop Action Play]
Name=Play
Exec=rhythmbox-client --play
[Desktop Action Pause]
Name=Pause
Exec=rhythmbox-client --pause
[Desktop Action Next]
Name=Next
Exec=rhythmbox-client --next
[Desktop Action Previous]
Name=Previous
Exec=rhythmbox-client --previous
```
```js

@@ -115,4 +73,45 @@ var parser = require('ini-parser')

}
```
<br>
file rhythmbox.desktop
```ini
[Desktop Entry]
Name=Rhythmbox
GenericName=Music Player
X-GNOME-FullName=Rhythmbox Music Player
Comment=Play and organize your music collection
Exec=rhythmbox %U
Terminal=false
Type=Application
Icon=rhythmbox
X-GNOME-DocPath=rhythmbox/rhythmbox.xml
Categories=GNOME;GTK;AudioVideo;
MimeType=application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac;
Keywords=Mp3;Audio;CD;MTP;Podcast;DAAP;Playlist;Ipod;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=rhythmbox
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata;
X-GNOME-Bugzilla-Version=2.96
Actions=Play;Pause;Next;Previous;
X-Ubuntu-Gettext-Domain=rhythmbox
[Desktop Action Play]
Name=Play
Exec=rhythmbox-client --play
[Desktop Action Pause]
Name=Pause
Exec=rhythmbox-client --pause
[Desktop Action Next]
Name=Next
Exec=rhythmbox-client --next
[Desktop Action Previous]
Name=Previous
Exec=rhythmbox-client --previous
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc