Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shopping-checkout

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shopping-checkout - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

libs/parseSheet.js

6

libs/templates/amazon-us/index.js
'use strict';
const pathResolve = require( 'path' ).resolve;
const cons = require( 'consolidate' );
const sheet2json = require( '../../sheet2json' );
const parseSheet = require( '../../parseSheet' );

@@ -17,5 +17,5 @@ /**

module.exports = ( sheet , onRendered )=> {
const array = sheet2json( sheet );
const templatePath = pathResolve( __dirname , 'template.html' );
array.forEach( ( rowData )=> {
parseSheet( sheet , ( rowData )=> {
// 计算总价

@@ -22,0 +22,0 @@ rowData[ '总价' ] = rowData.items.reduce( ( previousValue , currentItem )=> {

{
"name" : "shopping-checkout" ,
"version" : "0.0.1" ,
"version" : "0.1.0" ,
"description" : "根据数据生成购物网站的结算页面" ,

@@ -9,2 +9,9 @@ "preferGlobal" : true ,

} ,
"scripts" : {
"render" : "cd ./examples && node ../bin/cli"
} ,
"files" : [
"bin" ,
"libs"
] ,
"bin" : {

@@ -18,13 +25,13 @@ "checkout" : "./bin/cli.js"

"xlsx" : "^0.8.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/esong-fe/shopping-checkout.git"
},
"author": "Milk Lee <me@limingkai.cn>",
"license": "MIT",
"bugs": {
"url": "https://github.com/esong-fe/shopping-checkout/issues"
},
"homepage": "https://github.com/esong-fe/shopping-checkout"
} ,
"repository" : {
"type" : "git" ,
"url" : "git+https://github.com/esong-fe/shopping-checkout.git"
} ,
"author" : "Milk Lee <me@limingkai.cn>" ,
"license" : "MIT" ,
"bugs" : {
"url" : "https://github.com/esong-fe/shopping-checkout/issues"
} ,
"homepage" : "https://github.com/esong-fe/shopping-checkout"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc