From 4877228a33e7ca558b295c7424fdedd036d84ee5 Mon Sep 17 00:00:00 2001 From: hotoo Date: Wed, 12 Mar 2014 13:46:26 +0800 Subject: [PATCH] Fixed name for npmjs.org/pinyin --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5e1efa9..59c84d7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ---- -[![NPM version](https://badge.fury.io/js/pinyinjs.png)](http://badge.fury.io/js/pinyinjs) +[![NPM version](https://badge.fury.io/js/pinyin.png)](http://badge.fury.io/js/pinyin) [![Build Status](https://secure.travis-ci.org/hotoo/node-pinyin.png?branch=master)](https://travis-ci.org/hotoo/node-pinyin) [![Coverage Status](https://coveralls.io/repos/hotoo/node-pinyin/badge.png?branch=master)](https://coveralls.io/r/hotoo/node-pinyin) @@ -22,7 +22,7 @@ Python 版请关注 [mozillazg/python-pinyin](https://github.com/mozillazg/pytho ## 安装 ``` -npm install pinyinjs +npm install pinyin ``` ## 用法 @@ -30,7 +30,7 @@ npm install pinyinjs 开发者: ```js -var pinyin = require("pinyinjs"); +var pinyin = require("pinyin"); console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ] console.log(pinyin("中心", { diff --git a/package.json b/package.json index 4c56854..9e52ed0 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "pinyinjs", + "name": "pinyin", "version": "2.2.0", "description": "汉语拼音转换工具。", "main": "src/pinyin.js",