Normal Polygamous Marriage

    package-io
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5 • Public • Published

    It's a helper for operator package.json

    Usage

    npm install package-io
    const {pkgRead, pkgUpdate} = require('package-io');
    
    const data = pkgRead();
    
    pkgUpdate(Object.assign(data, {name: "my favorite"}));

    API Reference

    Functions

    pkgRead([url])Object

    return pkg context

    pkgUpdate(url, data)

    update your pkg

    pkgPath([url])string

    get path form your workSpace

    pkgRead([url]) ⇒ Object

    return pkg context

    Kind: global function

    Param Type Description
    [url] string package.json path

    pkgUpdate(url, data)

    update your pkg

    Kind: global function

    Param Type Description
    url string package.json path
    data Object cover data

    pkgPath([url]) ⇒ string

    get path form your workSpace

    Kind: global function

    Param Type Description
    [url] string package.json path

    License

    MIT

    Copyright (c) 2018 蓝色的秋风

    Keywords

    Install

    npm i package-io

    DownloadsWeekly Downloads

    11

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    5.43 kB

    Total Files

    6

    Last publish

    Collaborators

    • hua1995116