Skip to content

Commit

Permalink
Enable scoped package
Browse files Browse the repository at this point in the history
This is to work around the fact that the package name is too similar to existing packages. The error:

npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/json-excel - Package name too similar to existing packages; try renaming your package to '@papb/json-excel' and publishing with 'npm publish --access=public' instead
  • Loading branch information
papb committed Jun 28, 2020
1 parent a56adf4 commit 5c57318
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "json-excel",
"name": "@papb/json-excel",
"version": "0.0.0",
"description": "Create a pretty Excel table from JSON data with a very simple API",
"license": "MIT",
Expand Down Expand Up @@ -54,6 +54,9 @@
"typescript": "~3.9.5",
"xo": "^0.32.0"
},
"publishConfig": {
"access": "public"
},
"ava": {
"verbose": true,
"require": [
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# json-excel [![Build Status](https://travis-ci.com/papb/json-excel.svg?branch=master)](https://travis-ci.com/papb/json-excel)
# @papb/json-excel [![Build Status](https://travis-ci.com/papb/json-excel.svg?branch=master)](https://travis-ci.com/papb/json-excel)

> Create a pretty Excel table from JSON data with a very simple API
Expand All @@ -15,14 +15,14 @@
## Install

```
$ npm install json-excel
$ npm install @papb/json-excel
```


## Usage

```js
const jsonToExcel = require('json-excel');
const jsonToExcel = require('@papb/json-excel');

(async () => {
await jsonToExcel([
Expand Down

0 comments on commit 5c57318

Please sign in to comment.