Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "alphabetjs", | ||
"version": "0.1.3", | ||
"main": "src/alphabet-node", | ||
"homepage": "github/starkwang/alphabetJS", | ||
"license": "BSD-3-Clause", | ||
"version": "0.1.4", | ||
"main": "dist/alphabet.common.js", | ||
"module": "dist/alphabet.esm.js", | ||
"homepage": "https://github.com/starkwang/alphabetJS", | ||
"license": "MIT", | ||
"author": { | ||
"name": "starkwang", | ||
"email": "wjwang13@fudan.edu.cn", | ||
"url": "http://blog.starkwang.com/" | ||
"email": "starkwang@126.com" | ||
}, | ||
@@ -15,3 +15,21 @@ "repository": { | ||
"url": "http://github.com/starkawng/alphabetJS.git" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "node ./scripts/build", | ||
"test": "node ./test/index.js && babel-node --presets env ./test/esm.js" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-preset-env": "^1.6.1", | ||
"eslint": "^4.14.0", | ||
"eslint-config-standard": "^11.0.0-beta.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-promise": "^3.6.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"webpack": "^3.10.0" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -13,3 +13,3 @@ ``` | ||
#AlphabetJS | ||
# AlphabetJS | ||
@@ -20,51 +20,20 @@ AlphabetJS is a small tool to help you output big English character in console/shell or anyother platform. | ||
#Usage | ||
# Usage | ||
###In browser | ||
Use `npm` to install it | ||
Import `alphabet.js` or `alphabet.min.js` | ||
``` | ||
<script type="text/javascript" src="alphabet.min.js"></script> | ||
npm install alphabetjs --save | ||
``` | ||
Then you can use it to print character in console: | ||
``` | ||
console.log(Alphabet('LJB23','stereo')); | ||
``` | ||
And then you get: | ||
``` | ||
|ˉ|ˉ| |ˉˉˉˉˉˉˉˉˉ|ˉ||ˉˉˉˉˉˉˉˉˉ\ˉ\ /ˉˉˉˉˉˉˉˉ\ˉ\ |ˉˉˉˉˉˉˉˉˉˉ\ˉ\ | ||
| | | ˉˉˉˉˉ| |ˉ|ˉˉˉ| |ˉ|ˉˉˉ\ | | / /ˉ/ˉˉˉˉ\ \ \ˉˉˉˉˉˉˉˉˉ| |ˉ| | ||
| | | | | | | ˉˉˉˉˉ / / ˉˉˉˉ / /ˉ/|ˉˉˉˉˉˉˉˉ /ˉ/ | ||
| | | | | | | |ˉ|ˉˉˉ\ \ \ |ˉˉˉˉˉˉˉˉ / / ˉˉˉˉˉˉˉˉˉ| \ˉ\ | ||
| | | \ˉ\ˉ\/ | | | | | / | || |ˉ|ˉˉˉˉˉˉˉ / |ˉ| | ||
| ˉˉˉˉˉˉˉˉ|ˉ| \ ˉˉ / / | ˉˉˉˉˉ / /| ˉˉˉˉˉˉˉˉ|ˉ||ˉˉˉˉˉˉˉˉ /ˉ/ | ||
ˉˉˉˉˉˉˉˉˉˉˉˉˉˉ ˉˉˉˉˉˉ ˉˉˉˉˉˉˉˉˉˉˉˉ ˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉˉ | ||
``` | ||
--------- | ||
###In node | ||
Ise `npm` to install it | ||
``` | ||
npm install alphabetjs | ||
``` | ||
Then you can require it in node: | ||
```js | ||
const Alphabet = require('alphabetjs'); | ||
``` | ||
Alphabet = require('alphabetjs'); | ||
``` | ||
Then you can use it to print character in shell: | ||
```js | ||
const str = Alphabet('KOBE24','planar') | ||
console.log(str); | ||
``` | ||
console.log(Alphabet('KOBE24','planar')); | ||
``` | ||
@@ -86,5 +55,5 @@ And then you get: | ||
-------------- | ||
#API | ||
# API | ||
###Alphabet(str,character_type); | ||
### Alphabet(str,character_type); | ||
@@ -95,1 +64,26 @@ `@param {string} str` : `capital letter` or `number`, the string you want to output. | ||
---------- | ||
# License | ||
The MIT License (MIT) | ||
Copyright (c) Weijia Wang <starkwang@126.com> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
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
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
13
0
56510
11
1143
86
1