Skip to content

Commit 2c0c623

Browse files
author
Dipak Sarkar
committed
updated readme and clean up the code
1 parent 9e9840b commit 2c0c623

File tree

3 files changed

+37
-41
lines changed

3 files changed

+37
-41
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[![npm Downloads](https://badgen.net/npm/dt/@coders-tm/vue-number-format?color=green)](https://www.npmjs.com/package/@coders-tm/vue-number-format)
33
[![Bundlephobia](https://badgen.net/bundlephobia/minzip/@coders-tm/vue-number-format?color=green)](https://bundlephobia.com/result?p=@coders-tm/vue-number-format)
44
[![License](https://badgen.net/github/license/coders-tm/vue-number-format?color=green)](https://github.com/coders-tm/vue-number-format/blob/master/LICENSE)
5-
[![Netlify Status](https://api.netlify.com/api/v1/badges/71cebdfd-05e6-4465-873f-a37c7500c6d4/deploy-status)](https://vue-number-format.netlify.app)
65
# vue-number-format
76
Vue Number Format is used to format a number using fixed-point notation. It can be used to format a number with a specific number of digits to the right of the decimal.
87
## Features

package.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,15 @@
6666
"homepage": "https://vue-number-format.netlify.app",
6767
"keywords": [
6868
"vue",
69-
"input",
70-
"mask",
71-
"directive",
72-
"currency",
73-
"money",
74-
"vue",
75-
"directive component",
76-
"vue mask",
77-
"vue number input",
78-
"vue money input",
79-
"vue currecny input",
80-
"vue percentage input"
69+
"currency directive",
70+
"percentage input",
71+
"v-money",
72+
"v-currency",
73+
"v-percentage",
74+
"input mask",
75+
"number format",
76+
"currency input",
77+
"money input"
8178
],
8279
"license": "MIT",
8380
"repository": {

rollup.config.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ const baseConfig = {
1919
plugins: {
2020
preVue: [
2121
replace({
22-
'process.env.NODE_ENV': JSON.stringify('production'),
22+
'process.env.NODE_ENV': JSON.stringify('production')
2323
}),
24-
commonjs(),
24+
commonjs()
2525
],
2626
vue: {
2727
css: true,
2828
template: {
29-
isProduction: true,
30-
},
29+
isProduction: true
30+
}
3131
},
3232
postVue: [
3333
buble({
3434
transforms: {
35-
dangerousForOf: true,
36-
},
35+
dangerousForOf: true
36+
}
3737
}),
38-
filesize(),
39-
],
40-
},
38+
filesize()
39+
]
40+
}
4141
};
4242

4343
export default [
@@ -48,25 +48,25 @@ export default [
4848
format: 'esm',
4949
exports: 'named',
5050
sourcemap: true,
51-
banner,
51+
banner
5252
},
5353
plugins: [
5454
...baseConfig.plugins.preVue,
5555
css({
56-
output: pkg.style,
56+
output: pkg.style
5757
}),
5858
vue({
5959
...baseConfig.plugins.vue,
60-
css: false,
60+
css: false
6161
}),
6262
...baseConfig.plugins.postVue,
6363
terser({
6464
output: {
65-
ecma: 6,
66-
},
65+
ecma: 6
66+
}
6767
}),
68-
resolve(),
69-
],
68+
resolve()
69+
]
7070
},
7171
{
7272
...baseConfig,
@@ -77,24 +77,24 @@ export default [
7777
name: 'VueNumberFormat',
7878
exports: 'named',
7979
sourcemap: true,
80-
banner,
80+
banner
8181
},
8282
plugins: [
8383
...baseConfig.plugins.preVue,
8484
css({
85-
output: pkg.style,
85+
output: pkg.style
8686
}),
8787
vue({
8888
...baseConfig.plugins.vue,
8989
template: {
9090
...baseConfig.plugins.vue.template,
91-
optimizeSSR: true,
91+
optimizeSSR: true
9292
},
93-
css: false,
93+
css: false
9494
}),
9595
...baseConfig.plugins.postVue,
96-
resolve(),
97-
],
96+
resolve()
97+
]
9898
},
9999
{
100100
...baseConfig,
@@ -105,18 +105,18 @@ export default [
105105
name: 'VueNumberFormat',
106106
exports: 'named',
107107
sourcemap: true,
108-
banner,
108+
banner
109109
},
110110
plugins: [
111111
...baseConfig.plugins.preVue,
112112
vue(baseConfig.plugins.vue),
113113
...baseConfig.plugins.postVue,
114114
terser({
115115
output: {
116-
ecma: 5,
117-
},
116+
ecma: 5
117+
}
118118
}),
119-
resolve(),
120-
],
121-
},
119+
resolve()
120+
]
121+
}
122122
];

0 commit comments

Comments
 (0)