0.0.7 • Published 7 years ago

cremma v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

cremma

Utility functions for Javascript with a preference for immutability

npm version Build Status

Check the docs for available functions

Use

Install in your project

npm i --save cremma

Import modules wherever you want to use them

import { object } from 'cremma'

const sampleObject = {
  hi: 'there',
  i: {
    have: {
      some: 'data',
    },
    also: ['a', 'array'],
  },
}

const newObject = object.digAndPut(sampleObject, ['i', 'also', '0'], 'an')
// #=>
// {
//   hi: 'there',
//   i: {
//     have: {
//       some: 'data',
//     },
//     also: ['an', 'array'],
//   },
// }

Development

Clone and enter the repo, and install deps

git clone https://github.com/MainShayne233/cremma.git
cd cremma
npm i

and make changes in src

Commands

  • npm run test: Runs tests
  • npm run test:watch: Starts test watcher; will run test suite when changes are made
  • npm run build: Builds index.js for distribution/client use
  • npm run start: Starts a developer server, running at localhost:4000, where you can exercise/demo your code
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago