mining-utils
Advanced tools
Comparing version 0.3.2 to 0.4.0
export * from './src/util/removeAccent'; | ||
export * from './util/removePunctuation'; |
@@ -7,1 +7,2 @@ "use strict"; | ||
__export(require("./src/util/removeAccent")); | ||
__export(require("./util/removePunctuation")); |
{ | ||
"name": "mining-utils", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "", | ||
"author": "Oracy Rezende Martos <oramartos_21@hotmail.com> (https://github.com/Oracy)", | ||
"contributors": [ | ||
"Lucas Medeiros Cardoso <clucasmedeiros@gmail.com> (https://github.com/lu002047)" | ||
], | ||
"main": "./mining-utils.ts", | ||
@@ -43,4 +46,3 @@ "scripts": { | ||
}, | ||
"dependencies": { | ||
} | ||
"dependencies": {} | ||
} |
# Data Mining | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors) | ||
@@ -46,1 +47,17 @@ [![version](https://badge.fury.io/js/mining-utils.svg)](https://badge.fury.io/js/mining-utils) [![NPM downloads](https://img.shields.io/npm/dw/mining-utils)](https://img.shields.io/npm/dw/mining-utils) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Oracy/mining-utils/blob/master/LICENSE) [![Build Status](https://travis-ci.org/Oracy/mining-utils.svg?branch=master)](https://travis-ci.org/Oracy/mining-utils) | ||
Mining-utils is freely distributable under the terms of the [MIT license](https://github.com/Oracy/mining-utils/blob/master/LICENSE) | ||
## Contributors ✨ | ||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore --> | ||
<table> | ||
<tr> | ||
<td align="center"><a href="https://github.com/lu002047"><img src="https://avatars1.githubusercontent.com/u/12716914?v=4" width="100px;" alt="lu002047"/><br /><sub><b>lu002047</b></sub></a><br /><a href="#maintenance-lu002047" title="Maintenance">🚧</a> <a href="https://github.com/Oracy/mining-utils/commits?author=lu002047" title="Code">💻</a> <a href="#review-lu002047" title="Reviewed Pull Requests">👀</a></td> | ||
</tr> | ||
</table> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! |
export * from './util/removeAccent'; | ||
export * from './util/removePunctuation'; |
import { readFileSync, writeFileSync } from 'fs'; | ||
import { join } from 'path'; | ||
const files = [join('index.js'), join('index.d.ts')] | ||
const files: any[] = [join('index.js'), join('index.d.ts')] | ||
for (const file of files) { | ||
const fileData = readFileSync(file); | ||
const fileData: object = readFileSync(file); | ||
const result = fileData.toString().replace('./util', './src/util') | ||
const result: string = fileData.toString().replace('./util', './src/util') | ||
writeFileSync(file, result); | ||
} |
@@ -20,2 +20,3 @@ const accents = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖŐòóôõöőÈÉÊËèéêëðÇĈçĉÐǵĝĜǴĥḧḦĤÌÍÎÏìíîïĵĴḱḰĺĹḿḾńǹŃǸÙÚÛÜŰùúûüűÑñṕṔŕŔśŝŜŚŠšẗǘǜṽṼẃẁŵẅẄẂẀŴẍẌýỳŷỹÿýỸÝỲŶŸžźẑẐŹŽ'; | ||
const newArray: string[] = [] | ||
accents.split('').forEach((el, idx) => map[el] = noAccents[idx]) | ||
@@ -22,0 +23,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15440
19
201
62