Node ini-parser
Parse .ini files
Install
npm install ini-parser
Usage
var parser = parse parser parse
Example
var parser = console "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"
file rhythmbox.desktop
[Desktop Entry]Name=RhythmboxGenericName=Music PlayerX-GNOME-FullName=Rhythmbox Music PlayerComment=Play and organize your music collectionExec=rhythmbox %UTerminal=falseType=ApplicationIcon=rhythmboxX-GNOME-DocPath=rhythmbox/rhythmbox.xmlCategories=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=trueX-GNOME-Bugzilla-Bugzilla=GNOMEX-GNOME-Bugzilla-Product=rhythmboxX-GNOME-Bugzilla-Component=generalX-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata; X-GNOME-Bugzilla-Version=2.96Actions=Play;Pause;Next;Previous; X-Ubuntu-Gettext-Domain=rhythmbox [Desktop Action Play]Name=PlayExec=rhythmbox-client --play [Desktop Action Pause]Name=PauseExec=rhythmbox-client --pause [Desktop Action Next]Name=NextExec=rhythmbox-client --next [Desktop Action Previous]Name=PreviousExec=rhythmbox-client --previous