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

0.0.9 • Public • Published

camel-data

Format data to camel-case.

Installation

npm install --save camel-data

Usage

import camel from 'camel-data';

camel('module_id');

API

camel: function camel(input: camel, config?: IConfig): camel

type declare:(string Array or object is ok)

interface ICamel {
    [key: string]: camel;
}

type allCamel = string | ICamel;

type camel = allCamel | allCamel[];

// array enum string for
// array: never(default). no camel for array value in object.
// array: always. camel all the value for array in object.
// array: object. camel object type in array for array in object.
interface IConf {
    array: string;
}

/camel-data/

    Package Sidebar

    Install

    npm i camel-data

    Weekly Downloads

    1

    Version

    0.0.9

    License

    ISC

    Unpacked Size

    47.8 kB

    Total Files

    32

    Last publish

    Collaborators

    • luobata