Skip to content
node c++ expansion of Windows ini
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
inc
src
.gitignore
binding.gyp
readme.md

readme.md

Windows ini Node C++ 扩展

基于 Windows API 开发的 ini Node C++ 扩展

接口

  • String setPath(String:Path)
    设置 ini 路径
  • String:Path getPath()
    获取 ini 路径
  • String:Value read(String:Section, String:Key)
    读取值
  • Boolean:Success write(String:Section, String:Key, String:value)
    设置值
  • Boolean:Success remove(String:Section[, String:Key])
    移除 Key 或 Section
  • Array:Keys keys(String:Section)
    获取 Section 所有 Key
  • Array:Sections sections()
    获取 ini 所有 section

示例

编译

需安装 node-gyp 编译工具。详细步骤

然后配置编译

node-gyp configure

再编译工程

node-gyp build
You can’t perform that action at this time.