Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@limitless.claver/stringify

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@limitless.claver/stringify - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

51

dist/index.js

@@ -6,49 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Stringify = exports.Ncrypt = void 0;
const ncrypt_1 = __importDefault(require("./ncrypt"));
exports.Ncrypt = ncrypt_1.default;
const stringify_1 = __importDefault(require("./stringify"));
// const encrypter = new Stringify();
//
// const encrypted = encrypter.encrypt('This a sample text that could be scrambled and encrypted anyhow');
// console.log({encrypted});
//
// const decrypted = encrypter.decrypt(encrypted);
// console.log({decrypted})
const s = stringify_1.default.toEncryptedString({
"name": "John Doe",
"age": 30,
"email": "john.doe@example.com",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"phoneNumbers": [
{
"type": "home",
"number": "555-555-5555"
},
{
"type": "work",
"number": "666-666-6666"
}
],
"familyMembers": [
{
"name": "Jane Doe",
"relationship": "Spouse",
"age": 28
},
{
"name": "Johnny Doe",
"relationship": "Child",
"age": 5
}
],
"hobbies": [
"Reading",
"Hiking",
"Cooking"
]
});
console.log(s);
console.log(stringify_1.default.toLowerCase('JamesIsAnInterestingPerson'));
exports.Stringify = stringify_1.default;

7

package.json

@@ -7,3 +7,3 @@ {

},
"version": "1.0.0",
"version": "1.0.1",
"description": "String helper method for all string and JSON manipulations",

@@ -13,3 +13,3 @@ "main": "./dist/index.js",

"start": "tsc && node dist/index.js",
"dev": "ts-node-dev --respawn --transpileOnly src/index.ts",
"dev": "ts-node-dev --respawn --transpileOnly ../test/index.ts",
"build": "tsc"

@@ -23,3 +23,3 @@ },

"author": {
"name": "Peter Claver",
"name": "Peter Claver",
"email": "limitless.claver@gmail.com"

@@ -35,4 +35,5 @@ },

"dependencies": {
"@limitless.claver/stringify": "^1.0.0",
"dotenv": "^16.0.3"
}
}

@@ -0,51 +1,7 @@

import Ncrypt from "./ncrypt";
import Stringify from "./stringify";
// const encrypter = new Stringify();
//
// const encrypted = encrypter.encrypt('This a sample text that could be scrambled and encrypted anyhow');
// console.log({encrypted});
//
// const decrypted = encrypter.decrypt(encrypted);
// console.log({decrypted})
const s: string = Stringify.toEncryptedString({
"name": "John Doe",
"age": 30,
"email": "john.doe@example.com",
"address": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"phoneNumbers": [
{
"type": "home",
"number": "555-555-5555"
},
{
"type": "work",
"number": "666-666-6666"
}
],
"familyMembers": [
{
"name": "Jane Doe",
"relationship": "Spouse",
"age": 28
},
{
"name": "Johnny Doe",
"relationship": "Child",
"age": 5
}
],
"hobbies": [
"Reading",
"Hiking",
"Cooking"
]
}
) as string;
console.log(s)
console.log(Stringify.toLowerCase('JamesIsAnInterestingPerson'))
export {
Ncrypt,
Stringify
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc