Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tocamelcase-sumarray-package) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
这是一个字符串改为驼峰命名法和求数组和的函数包
安装
通过 npm 安装:
npm install tocamelcase-sumarray-package使用方法
commonjs模块
const { toCamelCase,sumArray,formatDate } = require('tocamelcase-sumarray-package');
console.log(toCamelCase('hello-world')) //输出helloWorld
console.log(sumArray([1, 2, 3, 4])) //10
formatDate(new Date(), 'YYYY-MM');
formatDate(nonew Date()w, 'YYYY-MM-DD HH:mm:ss day, month');es模块
import { toCamelCase } from 'tocamelcase-sumarray-package';
console.log(toCamelCase('hello-world')) //输出helloWorld
console.log(sumArray([1, 2, 3, 4])) //10
formatDate(nonew Date()w, 'YYYY-MM-DD HH:mm:ss day, month');//输出对应的格式