Skip to content

Commit

Permalink
Rename package from @sindresorhus/safe-stringify to safe-stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 6, 2023
1 parent 74a9f99 commit 448bd7d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -14,8 +14,8 @@ jobs:
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -14,7 +14,7 @@ Serialize objects to JSON with handling for circular references.
@example
```
import safeStringify from '@sindresorhus/safe-stringify';
import safeStringify from 'safe-stringify';
const foo = {a: true};
foo.b = foo;
Expand Down
8 changes: 6 additions & 2 deletions package.json
@@ -1,5 +1,5 @@
{
"name": "@sindresorhus/safe-stringify",
"name": "safe-stringify",
"version": "1.0.0",
"description": "Serialize objects to JSON with handling for circular references",
"license": "MIT",
Expand All @@ -11,7 +11,11 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=16"
},
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -7,13 +7,13 @@
## Install

```sh
npm install @sindresorhus/safe-stringify
npm install safe-stringify
```

## Usage

```js
import safeStringify from '@sindresorhus/safe-stringify';
import safeStringify from 'safe-stringify';

const foo = {a: true};
foo.b = foo;
Expand Down

0 comments on commit 448bd7d

Please sign in to comment.