Skip to content

Commit accc448

Browse files
committed
correct publish paths
1 parent df3ad29 commit accc448

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ As a common solver for deadlocks avoidance, we found an util lib to create and t
2727
`js-semaphore` is available with npm/yarn:
2828

2929
```bash
30-
$ npm install js-semaphore --save
31-
$ yarn add js-semaphore
30+
$ npm install @codevor/js-semaphore --save
31+
$ yarn add @codevor/js-semaphore
3232
```
3333

3434
## Usage
3535

3636
### With ES6/import
3737

3838
```js
39-
import { Semaphore } from 'js-semaphore';
39+
import { Semaphore } from '@codevor/js-semaphore';
4040

4141
// Semaphore with 1 resource = Mutex
4242
const semaphore = Semaphore();
@@ -60,7 +60,7 @@ semaphore.acquire().then(() => {
6060
### With require
6161

6262
```js
63-
const Semaphore = require('js-semaphore').Semaphore;
63+
const Semaphore = require('@codevor/js-semaphore').Semaphore;
6464

6565
// Semaphore with 1 resource = Mutex
6666
const semaphore = Semaphore();
@@ -86,7 +86,7 @@ semaphore.acquire().then(() => {
8686
If you want, you can control the timeout. We **hardly** suggest not let this below `0.2s`, but you can try if you want.
8787

8888
```js
89-
import { Semaphore, setTimespan, timespan } from 'js-semaphore';
89+
import { Semaphore, setTimespan, timespan } from '@codevor/js-semaphore';
9090

9191
// creates the Semaphore
9292
const semaphore = Semaphore();

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "js-semaphore",
2+
"name": "@codevor/js-semaphore",
33
"version": "0.1.0",
44
"description": "🚦Semaphore Implementation for JS",
55
"main": "dist/js-semaphore.js",

0 commit comments

Comments
 (0)