@andalugeeks/andaluh
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "@andalugeeks/andaluh", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "andaluh-js", | ||
"main": "dist/src/index.js", | ||
"main": "andaluh/epa.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"build:watch": "tsc --watch", | ||
"lint": "tslint --project \"./tsconfig.json\"", | ||
"test": "mocha --require ts-node/register test/**/*.ts", | ||
"docs": "typedoc --out docs src", | ||
"gh-pages": "rimraf docs && npm run docs && gh-pages -d docs" | ||
"test": "mocha test/epa.js" | ||
}, | ||
@@ -26,12 +21,5 @@ "homepage": "https://github.com/andalugeeks/andaluh-js#readme", | ||
"chai": "^4.2.0", | ||
"gh-pages": "^2.0.1", | ||
"mocha": "^5.2.0", | ||
"ts-node": "^8.0.2", | ||
"tslint": "^5.12.1", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.3.3" | ||
"mocha": "^5.2.0" | ||
}, | ||
"dependencies": { | ||
"xregexp": "^4.2.4" | ||
} | ||
"dependencies": {} | ||
} |
@@ -29,26 +29,14 @@ # Andaluh-js | ||
First, install dependencies with `npm install`. Then use `tsc CLI` to build the distribution `/dist` folder with `tsc`. | ||
First, install dependencies with `npm install`. | ||
### Javascript | ||
```javascript | ||
const EPA = require('@andalugeeks/andaluh').epa; | ||
const andaluhEPA = new EPA(); | ||
const andaluh = require('@andalugeeks/andaluh'); | ||
const andaluhEPA = new andaluh.default(); | ||
console.log(andaluhEPA.transcript('El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja')); | ||
// Er belôh murçiélago indú comía felîh cardiyo y kiwi. La çigueña tocaba er çâççofón detrâh der palenque de paha. | ||
``` | ||
### TypeScript | ||
You can simply use: | ||
```typescript | ||
import EPA from '@andalugeeks/andaluh'; | ||
var andaluhEPA = new EPA(); | ||
console.log(andaluhEPA.transcript('El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja')); | ||
// Er belôh murçiélago indú comía felîh cardiyo y kiwi. La çigueña tocaba er çâççofón detrâh der palenque de paha. | ||
``` | ||
## Publishing | ||
To submit a package to npm registry (as `npmjs`), use `tsc` (typescript CLI) to build the distribution folder `/dist`, then: | ||
To submit a package to npm registry (as `npmjs`): | ||
@@ -76,2 +64,2 @@ ```shell | ||
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and open a pull request. | ||
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and open a pull request. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
5
0
1
1
43720
6
560
64
- Removedxregexp@^4.2.4
- Removed@babel/runtime-corejs3@7.26.7(transitive)
- Removedcore-js-pure@3.40.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedxregexp@4.4.1(transitive)